MattGeimer / AngleCalc

A Swift package with various utility functions related to angles.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A Swift package with various utility functions related to angles.


Languages

Language:Swift 100.0%