/AngleCalc

A Swift package with various utility functions related to angles.

Primary LanguageSwift

AngleCalc

Build and Test

A Swift package with various utility functions related to angles.

to360

Takes in an angle and converts coterminal angles to the range [0°, 360°)]

angleBetween

Takes in an angle and a limit of two other angles. If the angle is within the two other angles' arc, returns nil. Otherwise returns the closer of the two angles.