Home Reference Source
public class | source

Quaternion

Static Method Summary

Static Public Methods
public static

axisAngle(axisVec3: *, angle: *): *

public static

fromMatrix(m: *): *

public static

fromPosition(vec3: *): *

public static

invert(quat: *): *

public static

multiply(q1: *, q2: *): *

public static

qlerp(lhq: *, rhq: *, ratio: *): *

Constructor Summary

Public Constructor
public

constructor(x: *, y: *, z: *, w: *)

Member Summary

Public Members
public get
public

w: *

public

x: *

public

y: *

public

z: *

Method Summary

Public Methods
public

add(q: *): *

public

at(i: *): *

public

axisAngle(axisVec3: *, angle: *): *

public

clone(): *

public

isEqual(vec: *): boolean

public

multiply(q: *): *

public

normalize(): *

public

setAt(i: *, val: *)

public

toString(): *

Static Public Methods

public static axisAngle(axisVec3: *, angle: *): * source

Params:

NameTypeAttributeDescription
axisVec3 *
angle *

Return:

*

public static fromMatrix(m: *): * source

Params:

NameTypeAttributeDescription
m *

Return:

*

public static fromPosition(vec3: *): * source

Params:

NameTypeAttributeDescription
vec3 *

Return:

*

public static invert(quat: *): * source

Params:

NameTypeAttributeDescription
quat *

Return:

*

public static multiply(q1: *, q2: *): * source

Params:

NameTypeAttributeDescription
q1 *
q2 *

Return:

*

public static qlerp(lhq: *, rhq: *, ratio: *): * source

Params:

NameTypeAttributeDescription
lhq *
rhq *
ratio *

Return:

*

Public Constructors

public constructor(x: *, y: *, z: *, w: *) source

Params:

NameTypeAttributeDescription
x *
y *
z *
w *

Public Members

public get className: * source

public w: * source

public x: * source

public y: * source

public z: * source

Public Methods

public add(q: *): * source

Params:

NameTypeAttributeDescription
q *

Return:

*

public at(i: *): * source

Params:

NameTypeAttributeDescription
i *

Return:

*

public axisAngle(axisVec3: *, angle: *): * source

Params:

NameTypeAttributeDescription
axisVec3 *
angle *

Return:

*

public clone(): * source

Return:

*

public isEqual(vec: *): boolean source

Params:

NameTypeAttributeDescription
vec *

Return:

boolean

public multiply(q: *): * source

Params:

NameTypeAttributeDescription
q *

Return:

*

public normalize(): * source

Return:

*

public setAt(i: *, val: *) source

Params:

NameTypeAttributeDescription
i *
val *

public toString(): * source

Return:

*