Class: btQuaternion
Ammo.btQuaternion
Hierarchy
↳
btQuaternion
Constructors
Methods
- x
- y
- z
- w
- setX
- setY
- setZ
- setW
- setValue
- setEulerZYX
- setRotation
- normalize
- length2
- length
- dot
- normalized
- getAxis
- inverse
- getAngle
- getAngleShortestPath
- angle
- angleShortestPath
- op_add
- op_sub
- op_mul
- op_mulq
- op_div
Constructors
constructor
• new btQuaternion(x
, y
, z
, w
): btQuaternion
Parameters
Name | Type |
---|---|
x | number |
y | number |
z | number |
w | number |
Returns
Overrides
Defined in
Methods
x
▸ x(): number
Returns
number
Inherited from
Defined in
y
▸ y(): number
Returns
number
Inherited from
Defined in
z
▸ z(): number
Returns
number
Inherited from
Defined in
w
▸ w(): number
Returns
number
Inherited from
Defined in
setX
▸ setX(x
): void
Parameters
Name | Type |
---|---|
x | number |
Returns
void
Inherited from
Defined in
setY
▸ setY(y
): void
Parameters
Name | Type |
---|---|
y | number |
Returns
void
Inherited from
Defined in
setZ
▸ setZ(z
): void
Parameters
Name | Type |
---|---|
z | number |
Returns
void
Inherited from
Defined in
setW
▸ setW(w
): void
Parameters
Name | Type |
---|---|
w | number |
Returns
void
Inherited from
Defined in
setValue
▸ setValue(x
, y
, z
, w
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
z | number |
w | number |
Returns
void
Defined in
setEulerZYX
▸ setEulerZYX(z
, y
, x
): void
Parameters
Name | Type |
---|---|
z | number |
y | number |
x | number |
Returns
void
Defined in
setRotation
▸ setRotation(axis
, angle
): void
Parameters
Name | Type |
---|---|
axis | btVector3 |
angle | number |
Returns
void
Defined in
normalize
▸ normalize(): void
Returns
void
Defined in
length2
▸ length2(): number
Returns
number
Defined in
length
▸ length(): number
Returns
number
Defined in
dot
▸ dot(q
): number
Parameters
Name | Type |
---|---|
q | btQuaternion |
Returns
number
Defined in
normalized
▸ normalized(): btQuaternion
Returns
Defined in
getAxis
▸ getAxis(): btVector3
Returns
Defined in
inverse
▸ inverse(): btQuaternion
Returns
Defined in
getAngle
▸ getAngle(): number
Returns
number
Defined in
getAngleShortestPath
▸ getAngleShortestPath(): number
Returns
number
Defined in
angle
▸ angle(q
): number
Parameters
Name | Type |
---|---|
q | btQuaternion |
Returns
number
Defined in
angleShortestPath
▸ angleShortestPath(q
): number
Parameters
Name | Type |
---|---|
q | btQuaternion |
Returns
number
Defined in
op_add
▸ op_add(q
): btQuaternion
Parameters
Name | Type |
---|---|
q | btQuaternion |
Returns
Defined in
op_sub
▸ op_sub(q
): btQuaternion
Parameters
Name | Type |
---|---|
q | btQuaternion |
Returns
Defined in
op_mul
▸ op_mul(s
): btQuaternion
Parameters
Name | Type |
---|---|
s | number |
Returns
Defined in
op_mulq
▸ op_mulq(q
): btQuaternion
Parameters
Name | Type |
---|---|
q | btQuaternion |
Returns
Defined in
op_div
▸ op_div(s
): btQuaternion
Parameters
Name | Type |
---|---|
s | number |