Members
x :number
Type:
- number
- Source
y :number
Type:
- number
- Source
z :number
Type:
- number
- Source
Methods
distance(other)
The distance between two Vector3 positions
Parameters:
Name | Type | Description |
---|---|---|
other | Vector3 |
- Source
Returns:
number
set(xopt, yopt, zopt)
Changes the x, y, z components of this vector to the given values.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
x | number | | <optional> | The x coordinate or another Vector3. |
y | number | <optional> | The y coordinate. Only used if 'x' and 'z' are also provided. |
z | number | <optional> | The z coordinate. Only used if 'x' and 'y' are also provided. |
- Source