Skip to content

Class: btVector3

Ammo.btVector3

Hierarchy

Constructors

Methods

Constructors

constructor

new btVector3(): btVector3

Returns

btVector3

Defined in

packages/ammo/ammo.d.ts:44

new btVector3(x, y, z): btVector3

Parameters

NameType
xnumber
ynumber
znumber

Returns

btVector3

Defined in

packages/ammo/ammo.d.ts:45

Methods

length

length(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:46


x

x(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:47


y

y(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:48


z

z(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:49


setX

setX(x): void

Parameters

NameType
xnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:50


setY

setY(y): void

Parameters

NameType
ynumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:51


setZ

setZ(z): void

Parameters

NameType
znumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:52


setValue

setValue(x, y, z): void

Parameters

NameType
xnumber
ynumber
znumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:53


normalize

normalize(): void

Returns

void

Defined in

packages/ammo/ammo.d.ts:54


rotate

rotate(wAxis, angle): btVector3

Parameters

NameType
wAxisbtVector3
anglenumber

Returns

btVector3

Defined in

packages/ammo/ammo.d.ts:55


dot

dot(v): number

Parameters

NameType
vbtVector3

Returns

number

Defined in

packages/ammo/ammo.d.ts:56


op_mul

op_mul(x): btVector3

Parameters

NameType
xnumber

Returns

btVector3

Defined in

packages/ammo/ammo.d.ts:57


op_add

op_add(v): btVector3

Parameters

NameType
vbtVector3

Returns

btVector3

Defined in

packages/ammo/ammo.d.ts:58


op_sub

op_sub(v): btVector3

Parameters

NameType
vbtVector3

Returns

btVector3

Defined in

packages/ammo/ammo.d.ts:59