Skip to content

@technobuddha > library > Geometry

Angle

NameTypeDescription
angleBetweenPointsFunctionComputes 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.
angleDifferenceFunctionComputes the difference between startAngle and endAngle.
angleOfLineFunctionCalculates the angle of a given line segment, relative to the horizontal axis
angleReflectionFunctionCalculates the reflection of an angle across a specified axis.
AngleUnitTypeTypes of angle units
angleUnitsConstantNumber of units in a circle
normalizeAngleFunctionNormalizes an angle to be in range 0-1 turns.
OriginOptionsTypeOptions for origin-related functions
toAngleFunctionConverts an angle from one unit to another.
toDegreesFunctionConvert an angle from radians to degrees
toRadiansFunctionConverts degrees to radians.
UnitOptionsTypeOptions for angle-related functions