Method: Mittsu::Matrix4#make_rotation_y
- Defined in:
- lib/mittsu/math/matrix4.rb
#make_rotation_y(theta) ⇒ Object
428 429 430 431 432 433 434 435 436 437 |
# File 'lib/mittsu/math/matrix4.rb', line 428 def make_rotation_y(theta) c, s = Math.cos(theta), Math.sin(theta) self.set( c, 0.0, s, 0.0, 0.0, 1.0, 0.0, 0.0, -s, 0.0, c, 0.0, 0.0, 0.0, 0.0, 1.0 ) self end |