new Vector3(options)
A 3D vector.
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Source:
Methods
add(v)
Set the values of this vector to the sum of itself and the given vector.
Parameters:
Name | Type | Description |
---|---|---|
v |
Vector3 | The vector to add with. |
- Source:
clone() → {Vector3}
Clone a copy of this vector.
- Source:
Returns:
The cloned vector.
- Type
- Vector3
multiplyQuaternion(q)
Multiply the given Quaternion with this vector.
Parameters:
Name | Type | Description |
---|---|---|
q |
Quaternion | The quaternion to multiply with. |
- Source:
subtract(v)
Set the values of this vector to the difference of itself and the given vector.
Parameters:
Name | Type | Description |
---|---|---|
v |
Vector3 | The vector to subtract with. |
- Source: