Quat

Summary

Constructors

Quat()
Quat(x: float, y: float, z: float, w: float)
Quat(eulerAngles: Vec3)
Quat(forward: Vec3, up: Vec3)
Quat(data: table)

Properties

Name Type
x float
y float
z float
w float
length float
lengthSquared float

Methods

Method Returns
ToEuler() Vec3
Normalize() Quat
Dot(other: Quat) float
Angle(other: Quat) float
RotateTowards(to: Quat, maxDegreesDelta: float) Quat
Slerp(to: Quat, t: float) Quat
SlerpUnclamped(to: Quat, t: float) Quat
Clone() Quat

Operators

Operator Rhs Returns
* Quat Quat
== Quat bool

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

Type Description
Vec3

Normalize

Normalize(): Quat

Returns

Type Description
Quat

Dot

Dot(other: Quat): float

Parameters

Name Type Description
other Quat

Returns

Type Description
float

Angle

Angle(other: Quat): float

Parameters

Name Type Description
other Quat

Returns

Type Description
float

RotateTowards

RotateTowards(to: Quat, maxDegreesDelta: float): Quat

Parameters

Name Type Description
to Quat
maxDegreesDelta float

Returns

Type Description
Quat

Slerp

Slerp(to: Quat, t: float): Quat

Parameters

Name Type Description
to Quat
t float

Returns

Type Description
Quat

SlerpUnclamped

SlerpUnclamped(to: Quat, t: float): Quat

Parameters

Name Type Description
to Quat
t float

Returns

Type Description
Quat

Clone

Clone(): Quat

Returns

Type Description
Quat

Operators

operator*

operator*(rhs: Quat): Quat

Parameters

Name Type Description
rhs Quat

Returns

Type Description
Quat

operator==

operator==(rhs: Quat): bool

Parameters

Name Type Description
rhs Quat

Returns

Type Description
bool
Last modified April 27, 2020: Regenerate all API documentation (0b49d6be)