Returns a new Point
with the given horizontal and vertical position.
Parses a JSON string representation of a Point and returns an object.
A JSON string, either in the form [x,y]
or {"x": 0, "y": 0}
A parsed Point.
Returns the magnitude of a point.
Converts a polar coordinate (length and angle) into a Cartesian coordinate.
Returns a new
Point
whereb
is added toa
.