Skip to content

Class: btQuaternion

Ammo.btQuaternion

Hierarchy

Constructors

Methods

Constructors

constructor

new btQuaternion(x, y, z, w): btQuaternion

Parameters

NameType
xnumber
ynumber
znumber
wnumber

Returns

btQuaternion

Overrides

btQuadWord.constructor

Defined in

packages/ammo/ammo.d.ts:79

Methods

x

x(): number

Returns

number

Inherited from

btQuadWord.x

Defined in

packages/ammo/ammo.d.ts:69


y

y(): number

Returns

number

Inherited from

btQuadWord.y

Defined in

packages/ammo/ammo.d.ts:70


z

z(): number

Returns

number

Inherited from

btQuadWord.z

Defined in

packages/ammo/ammo.d.ts:71


w

w(): number

Returns

number

Inherited from

btQuadWord.w

Defined in

packages/ammo/ammo.d.ts:72


setX

setX(x): void

Parameters

NameType
xnumber

Returns

void

Inherited from

btQuadWord.setX

Defined in

packages/ammo/ammo.d.ts:73


setY

setY(y): void

Parameters

NameType
ynumber

Returns

void

Inherited from

btQuadWord.setY

Defined in

packages/ammo/ammo.d.ts:74


setZ

setZ(z): void

Parameters

NameType
znumber

Returns

void

Inherited from

btQuadWord.setZ

Defined in

packages/ammo/ammo.d.ts:75


setW

setW(w): void

Parameters

NameType
wnumber

Returns

void

Inherited from

btQuadWord.setW

Defined in

packages/ammo/ammo.d.ts:76


setValue

setValue(x, y, z, w): void

Parameters

NameType
xnumber
ynumber
znumber
wnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:80


setEulerZYX

setEulerZYX(z, y, x): void

Parameters

NameType
znumber
ynumber
xnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:81


setRotation

setRotation(axis, angle): void

Parameters

NameType
axisbtVector3
anglenumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:82


normalize

normalize(): void

Returns

void

Defined in

packages/ammo/ammo.d.ts:83


length2

length2(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:84


length

length(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:85


dot

dot(q): number

Parameters

NameType
qbtQuaternion

Returns

number

Defined in

packages/ammo/ammo.d.ts:86


normalized

normalized(): btQuaternion

Returns

btQuaternion

Defined in

packages/ammo/ammo.d.ts:87


getAxis

getAxis(): btVector3

Returns

btVector3

Defined in

packages/ammo/ammo.d.ts:88


inverse

inverse(): btQuaternion

Returns

btQuaternion

Defined in

packages/ammo/ammo.d.ts:89


getAngle

getAngle(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:90


getAngleShortestPath

getAngleShortestPath(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:91


angle

angle(q): number

Parameters

NameType
qbtQuaternion

Returns

number

Defined in

packages/ammo/ammo.d.ts:92


angleShortestPath

angleShortestPath(q): number

Parameters

NameType
qbtQuaternion

Returns

number

Defined in

packages/ammo/ammo.d.ts:93


op_add

op_add(q): btQuaternion

Parameters

NameType
qbtQuaternion

Returns

btQuaternion

Defined in

packages/ammo/ammo.d.ts:94


op_sub

op_sub(q): btQuaternion

Parameters

NameType
qbtQuaternion

Returns

btQuaternion

Defined in

packages/ammo/ammo.d.ts:95


op_mul

op_mul(s): btQuaternion

Parameters

NameType
snumber

Returns

btQuaternion

Defined in

packages/ammo/ammo.d.ts:96


op_mulq

op_mulq(q): btQuaternion

Parameters

NameType
qbtQuaternion

Returns

btQuaternion

Defined in

packages/ammo/ammo.d.ts:97


op_div

op_div(s): btQuaternion

Parameters

NameType
snumber

Returns

btQuaternion

Defined in

packages/ammo/ammo.d.ts:98