Class: btVector3
Ammo.btVector3
Hierarchy
btVector3
Constructors
Methods
Constructors
constructor
• new btVector3(): btVector3
Returns
Defined in
• new btVector3(x
, y
, z
): btVector3
Parameters
Name | Type |
---|---|
x | number |
y | number |
z | number |
Returns
Defined in
Methods
length
▸ length(): number
Returns
number
Defined in
x
▸ x(): number
Returns
number
Defined in
y
▸ y(): number
Returns
number
Defined in
z
▸ z(): number
Returns
number
Defined in
setX
▸ setX(x
): void
Parameters
Name | Type |
---|---|
x | number |
Returns
void
Defined in
setY
▸ setY(y
): void
Parameters
Name | Type |
---|---|
y | number |
Returns
void
Defined in
setZ
▸ setZ(z
): void
Parameters
Name | Type |
---|---|
z | number |
Returns
void
Defined in
setValue
▸ setValue(x
, y
, z
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
z | number |
Returns
void
Defined in
normalize
▸ normalize(): void
Returns
void
Defined in
rotate
▸ rotate(wAxis
, angle
): btVector3
Parameters
Name | Type |
---|---|
wAxis | btVector3 |
angle | number |
Returns
Defined in
dot
▸ dot(v
): number
Parameters
Name | Type |
---|---|
v | btVector3 |
Returns
number
Defined in
op_mul
▸ op_mul(x
): btVector3
Parameters
Name | Type |
---|---|
x | number |
Returns
Defined in
op_add
▸ op_add(v
): btVector3
Parameters
Name | Type |
---|---|
v | btVector3 |
Returns
Defined in
op_sub
▸ op_sub(v
): btVector3
Parameters
Name | Type |
---|---|
v | btVector3 |