Quaternion
Properties
- w (
number): W component
- x (
number): X component
- y (
number): Y component
- z (
number): Z component
Functions
- Conjugate(): Get the conjugate
- EulerAngles(): Get the rotation as Euler angles in radians, as a Vec3
- GetNormalized(): Get a copy scaled to length 1
- Inverse(): Get the inverse rotation
- Length(): Get the quaternion's length
- Normalize(): Scale to length 1, in place
- SqrLength(): Get the squared length
- new(): Quaternion.new(roll, pitch, yaw) from Euler angles in radians, or Quaternion.new() for no rotation. Supports + and -