Point2
- class Communicator.Point2()
Constructors
Methods
Constructors
Properties
- Point2.x
- Type
number
- Point2.y
- Type
number
Methods
static add
assign
copy
equals
forJson
- Point2.forJson()
- Deprecated
Use
toJson
instead.- Return type
Object
length
- Point2.length()
Returns the length of this point
- Return type
number
- Returns
the point length
static scale
set
squaredLength
- Point2.squaredLength()
Returns the squared length of this vector.
- Return type
number
- Returns
Vector squared length.
static subtract
toJson
- Point2.toJson()
Creates an object ready for JSON serialization.
- Return type
Object
- Returns
The prepared object.