Point3
- class Communicator.Point3()
Constructors
Methods
Constructors
Properties
- Point3.x
- Type
number
- Point3.y
- Type
number
- Point3.z
- Type
number
Methods
static add
assign
copy
equals
equalsWithTolerance
forJson
- Point3.forJson()
- Deprecated
Use
toJson
instead.- Return type
Object
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.
negate
normalize
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.