Quat
Summary
Constructors
Properties
Methods
Operators
Constructors
Quat
Quat()
Quat
Quat(x: float, y: float, z: float, w: float)
Parameters
| Name |
Type |
Description |
| x |
float |
|
| y |
float |
|
| z |
float |
|
| w |
float |
|
Quat
Quat(eulerAngles: Vec3)
Parameters
| Name |
Type |
Description |
| eulerAngles |
Vec3 |
|
Quat
Quat(forward: Vec3, up: Vec3)
Parameters
| Name |
Type |
Description |
| forward |
Vec3 |
|
| up |
Vec3 |
|
Quat
Quat(data: table)
Parameters
| Name |
Type |
Description |
| data |
table |
|
Properties
x
float
y
float
z
float
w
float
length
float
lengthSquared
float
Methods
ToEuler
ToEuler(): Vec3
Returns
Normalize
Normalize(): Quat
Returns
Dot
Dot(other: Quat): float
Parameters
| Name |
Type |
Description |
| other |
Quat |
|
Returns
Angle
Angle(other: Quat): float
Parameters
| Name |
Type |
Description |
| other |
Quat |
|
Returns
RotateTowards
RotateTowards(to: Quat, maxDegreesDelta: float): Quat
Parameters
| Name |
Type |
Description |
| to |
Quat |
|
| maxDegreesDelta |
float |
|
Returns
Slerp
Slerp(to: Quat, t: float): Quat
Parameters
| Name |
Type |
Description |
| to |
Quat |
|
| t |
float |
|
Returns
SlerpUnclamped
SlerpUnclamped(to: Quat, t: float): Quat
Parameters
| Name |
Type |
Description |
| to |
Quat |
|
| t |
float |
|
Returns
Clone
Clone(): Quat
Returns
Operators
operator*
operator*(rhs: Quat): Quat
Parameters
| Name |
Type |
Description |
| rhs |
Quat |
|
Returns
operator==
operator==(rhs: Quat): bool
Parameters
| Name |
Type |
Description |
| rhs |
Quat |
|
Returns