Api - angle Namespace
Index
Functions
mirror
-
Parameters
-
angleInDegrees: number
The angle to mirror.
-
mirrorX: boolean
Boolean to mirror on the x axis.
-
mirrorY: boolean
Boolean to mirror on the y axis.
Returns number
Mirrored angle.
-
noRevolutions
-
Ensures an angle is not greater than 360
Parameters
-
angleInDegrees: number
Angle in degrees.
Returns number
Same polar angle but not greater than 360 degrees.
-
ofArcEnd
-
Get an arc's end angle, ensured to be greater than its start angle.
Parameters
-
arc: IPathArc
An arc path object.
Returns number
End angle of arc.
-
ofArcMiddle
-
Get the angle in the middle of an arc's start and end angles.
Parameters
-
arc: IPathArc
An arc path object.
-
Default value ratio: number = 0.5
Optional number between 0 and 1 specifying percentage between start and end angles. Default is .5
Returns number
Middle angle of arc.
-
ofArcSpan
-
Total angle of an arc between its start and end angles.
Parameters
-
arc: IPathArc
The arc to measure.
Returns number
Angle of arc.
-
ofChainLinkJoint
-
Get the angle of a joint between 2 chain links.
Parameters
-
linkA: IChainLink
First chain link.
-
linkB: IChainLink
Second chain link.
Returns number
Angle between chain links.
-
ofLineInDegrees
-
Angle of a line path.
Parameters
-
line: IPathLine
The line path to find the angle of.
Returns number
Angle of the line path, in degrees.
-
ofPointInDegrees
ofPointInRadians
toDegrees
-
Convert an angle from radians to degrees.
Parameters
-
angleInRadians: number
Angle in radians.
Returns number
Angle in degrees.
-
toRadians
-
Convert an angle from degrees to radians.
Parameters
-
angleInDegrees: number
Angle in degrees.
Returns number
Angle in radians.
-
Generated using TypeDoc
Mirror an angle on either or both x and y axes.