* Sets the given rotation represented as rotation matrix to the 3D object. * * @param {Matrix4} m - Although a 4x4 matrix is expected, the upper 3x3 portion must be * a pure rotation matrix (i.e, unscaled).
( m )
| 501 | * a pure rotation matrix (i.e, unscaled). |
| 502 | */ |
| 503 | setRotationFromMatrix( m ) { |
| 504 | |
| 505 | // assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled) |
| 506 | |
| 507 | this.quaternion.setFromRotationMatrix( m ); |
| 508 | |
| 509 | } |
| 510 | |
| 511 | /** |
| 512 | * Sets the given rotation represented as a Quaternion to the 3D object. |
no test coverage detected