Method: RMath3D::RMtx2#rotation
- Defined in:
- lib/rmath3d/rmath3d_plain.rb
#rotation(radian) ⇒ Object
call-seq: rotation(radian) -> self
Makes a matrix that rotates around the z-axis.
321 322 323 324 325 326 327 328 329 330 331 332 |
# File 'lib/rmath3d/rmath3d_plain.rb', line 321 def rotation( radian ) s = Math.sin( radian ) c = Math.cos( radian ) setIdentity() self.e00 = c self.e01 = -s self.e10 = s self.e11 = c return self end |