Point3
- class Communicator.Point3()
Constructors
Methods
Constructors
Methods
static add
assign
copy
equals
equalsWithTolerance
fromArray
isAxis
- Point3.isAxis()
Returns a boolean value indicating if this vector lies on a major axis.
- Return type
boolean
length
- Point3.length()
Returns the length of this vector.
- Return type
number
- Returns
Vector length.
static scale
set
squaredLength
- Point3.squaredLength()
Returns the squared length of this vector.
- Return type
number
- Returns
Vector squared length.
static subtract
toArray
- Point3.toArray(arr)
Sets an array from this point.
- Arguments
arr (
[number]()
) – Array to assign.
- Return type
void
toJson
- Point3.toJson()
Creates an object ready for JSON serialization.
- Return type
Object
- Returns
The prepared object.