Constructor
new Polar(r, a)
Create a new point.
Parameters:
Name | Type | Description |
---|---|---|
r |
number | The distance for the origin. |
a |
number | The angle in radians. |
Methods
toPoint() → {Point}
Convert a Polar to a Point.
Returns:
- Type
- Point
toPointCenter(center) → {Point}
Convert a Polar to a Point, specifying the origin.
Parameters:
Name | Type | Description |
---|---|---|
center |
Point | The origin. |
Returns:
- Type
- Point