Constructor
new Quaternion($x, $y, $z, $w)
- Description:
- Creates a new quaternion.
- Source:
Example
const quaternion = new Quaternion(0, 0, 0, 1);
Parameters:
Name | Type | Description |
---|---|---|
$x |
number | The x component of the quaternion to create. |
$y |
number | The y component of the quaternion to create. |
$z |
number | The z component of the quaternion to create. |
$w |
number | The w component of the quaternion to create. |
Members
w :number
- Description:
- Gets the w component.
- Source:
Gets the w component.
Type:
- number
x :number
- Description:
- Gets the x component.
- Source:
Gets the x component.
Type:
- number
y :number
- Description:
- Gets the y component.
- Source:
Gets the y component.
Type:
- number
z :number
- Description:
- Gets the z component.
- Source:
Gets the z component.
Type:
- number