Vector3

Show Deprecated

Summary

Constructors

new(x: number, y: number, z: number)  

FromNormalId(normal: NormalId)  

FromAxis(axis: Axis)  

Properties

Methods

Cross(other: Vector3): Vector3  

Angle(other: Vector3, axis: Vector3): number  

Dot(other: Vector3): number  

FuzzyEq(other: Vector3, epsilon: number): boolean  

Lerp(goal: Vector3, alpha: number): Vector3  

Max(others...: Tuple): Vector3  

Min(others...: Tuple): Vector3  

Constructors

new

Parameters

Default Value: "0"
Default Value: "0"
Default Value: "0"

FromNormalId

Parameters

normal: NormalId

FromAxis

Parameters

axis: Axis

Properties

xAxis

yAxis

zAxis

Magnitude

Methods

Cross

Parameters

other: Vector3

Returns

Angle

Parameters

other: Vector3
axis: Vector3
Default Value: "nil"

Returns

Parameters

other: Vector3

Returns

FuzzyEq

Parameters

other: Vector3
epsilon: number
Default Value: "0.00001 aka 1e-5"

Returns

Parameters

goal: Vector3
alpha: number

Returns

Parameters

others...: Tuple

Returns

Parameters

others...: Tuple

Returns