Skip to content

Class: btVector4

Ammo.btVector4

Hierarchy

Constructors

Methods

Constructors

constructor

new btVector4(): btVector4

Returns

btVector4

Overrides

btVector3.constructor

Defined in

packages/ammo/ammo.d.ts:62

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

Parameters

NameType
xnumber
ynumber
znumber
wnumber

Returns

btVector4

Overrides

btVector3.constructor

Defined in

packages/ammo/ammo.d.ts:63

Methods

length

length(): number

Returns

number

Inherited from

btVector3.length

Defined in

packages/ammo/ammo.d.ts:46


x

x(): number

Returns

number

Inherited from

btVector3.x

Defined in

packages/ammo/ammo.d.ts:47


y

y(): number

Returns

number

Inherited from

btVector3.y

Defined in

packages/ammo/ammo.d.ts:48


z

z(): number

Returns

number

Inherited from

btVector3.z

Defined in

packages/ammo/ammo.d.ts:49


setX

setX(x): void

Parameters

NameType
xnumber

Returns

void

Inherited from

btVector3.setX

Defined in

packages/ammo/ammo.d.ts:50


setY

setY(y): void

Parameters

NameType
ynumber

Returns

void

Inherited from

btVector3.setY

Defined in

packages/ammo/ammo.d.ts:51


setZ

setZ(z): void

Parameters

NameType
znumber

Returns

void

Inherited from

btVector3.setZ

Defined in

packages/ammo/ammo.d.ts:52


normalize

normalize(): void

Returns

void

Inherited from

btVector3.normalize

Defined in

packages/ammo/ammo.d.ts:54


rotate

rotate(wAxis, angle): btVector3

Parameters

NameType
wAxisbtVector3
anglenumber

Returns

btVector3

Inherited from

btVector3.rotate

Defined in

packages/ammo/ammo.d.ts:55


dot

dot(v): number

Parameters

NameType
vbtVector3

Returns

number

Inherited from

btVector3.dot

Defined in

packages/ammo/ammo.d.ts:56


op_mul

op_mul(x): btVector3

Parameters

NameType
xnumber

Returns

btVector3

Inherited from

btVector3.op_mul

Defined in

packages/ammo/ammo.d.ts:57


op_add

op_add(v): btVector3

Parameters

NameType
vbtVector3

Returns

btVector3

Inherited from

btVector3.op_add

Defined in

packages/ammo/ammo.d.ts:58


op_sub

op_sub(v): btVector3

Parameters

NameType
vbtVector3

Returns

btVector3

Inherited from

btVector3.op_sub

Defined in

packages/ammo/ammo.d.ts:59


w

w(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:64


setValue

setValue(x, y, z): void

Parameters

NameType
xnumber
ynumber
znumber

Returns

void

Overrides

btVector3.setValue

Defined in

packages/ammo/ammo.d.ts:65

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

Parameters

NameType
xnumber
ynumber
znumber
wnumber

Returns

void

Overrides

btVector3.setValue

Defined in

packages/ammo/ammo.d.ts:66