Members and methods attached to the
rac.Angle function.
The function contains ready-made convenience
Angle objects for usual values, all setup with the
owning Rac instance.
Example
let rac = new Rac()
rac.Angle.quarter // ready-made quarter angle
rac.Angle.quarter.rac === rac // true
Members
eighth :Rac.Angle
An Angle with turn 1/8.
Also named as: bottomRight, br, se.
half :Rac.Angle
An Angle with turn 1/2.
Also named as: left, l, west, w, inverse.
neighth :Rac.Angle
An Angle with turn 7/8, negative angle of
eighth.
Also named as: topRight, tr, ne.
north :Rac.Angle
An Angle with turn 3/4.
Also named as: up, u, top, t.
quarter :Rac.Angle
An Angle with turn 1/4.
Also named as: down, d, bottom, b, south, s, square.
zero :Rac.Angle
An Angle with turn 0.
Also named as: right, r, east, e.
Methods
from(something) → {Rac.Angle}
Returns an Angle derived from something.
CallsRac.Angle.from using this.
- See also:
Parameters:
| Name | Type | Description |
|---|---|---|
something |
number
|
Rac.Angle
|
Rac.Ray
|
Rac.Segment
|
An object to
derive an |
fromDegrees(degrees) → {Rac.Angle}
Returns an Angle derived from degrees.
Calls Rac.Angle.fromDegrees using this.
- See also:
Parameters:
| Name | Type | Description |
|---|---|---|
degrees |
Number
|
The measure of the angle, in degrees |
fromRadians(radians) → {Rac.Angle}
Returns an Angle derived from radians.
Calls Rac.Angle.fromRadians using this.
- See also:
Parameters:
| Name | Type | Description |
|---|---|---|
radians |
Number
|
The measure of the angle, in radians |