The Point object represents a location in a two-dimensional coordinate system, where x represents the horizontal axis and y represents the vertical axis.
Adds the x and y values of a point to this point.
The point to add to this one
Returns the dot product between this point and another one.
The point to form a dot product with
The dot product between the two points.
Works with a reviver function to restore from a native Object to an instance of this type.
Returns the squared length (or magnitude) of this point. This is faster than length().
The length squared of this point.
Multiplies the x and y values of this point by a value.
The value to scale by.
Subtracts the x and y values of a point from this point.
The point to subtract from this one
creates a serializable form of this object so it may be saved or passed via Bellhop.
Note that it adds a special property named
__classname to tell the Reviver
how to restore a pristine
Truncate the length of the point to a maximum.
The maximum length to allow in this point.