Transform class provides a set of translation and rotation.
Constructor
Methods
inlinegetOrientationTo(orientation:Quat):Void
Sets orientation
to the quaternion representing the rotation.
This does not create a new instance of Quat
.
inlinegetPositionTo(position:Vec3):Void
Sets position
to the position of the transformation.
This does not create a new instance of Vec3
.
inlinegetRotationTo(out:Mat3):Void
Sets out
to the rotation matrix.
This does not create a new instance of Mat3
.
inlinesetOrientation(quaternion:Quat):Transform
Sets the rotation from a quaternion quaternion
and returns this
.
inlinesetPosition(position:Vec3):Transform
Sets the position of the transformation to position
and returns this
.
inlinesetRotationXyz(eulerAngles:Vec3):Void
Sets the rotation by Euler angles eulerAngles
in radians.