@technobuddha > library > Geometry
Angle
| Name | Type | Description |
|---|---|---|
| angleBetweenPoints | Function | Computes the angle between two points (x1,y1) and (x2,y2). Angle zero points in the +X direction, π/2 radians points in the +Y direction (down) and from there we grow clockwise towards π*2 radians. |
| angleDifference | Function | Computes the difference between startAngle and endAngle. |
| angleOfLine | Function | Calculates the angle of a given line segment, relative to the horizontal axis |
| angleReflection | Function | Calculates the reflection of an angle across a specified axis. |
| AngleUnit | Type | Types of angle units |
| angleUnits | Constant | Number of units in a circle |
| normalizeAngle | Function | Normalizes an angle to be in range 0-1 turns. |
| OriginOptions | Type | Options for origin-related functions |
| toAngle | Function | Converts an angle from one unit to another. |
| toDegrees | Function | Convert an angle from radians to degrees |
| toRadians | Function | Converts degrees to radians. |
| UnitOptions | Type | Options for angle-related functions |