Use static typing to distinguish between degrees and radians #263
Labels
good first issue
Good for newcomers
topic: core
Issues relating to core geometry, operations, algorithms
type: feature
New features and improvements to existing features
Angles in the
fj
library are just represented as floating-point numbers in radians. This is error-prone, as users can assume those are degrees.I think there should a an
Angle
type that uses radians internally, but provides constructors (from_deg
,from_rad
) and accessors (deg
,rad
) to make working with angles convenient and obvious. This type should also implement the common math operators.Such a type will probably be useful in the CAD kernel too, so #122 is relevant.
The text was updated successfully, but these errors were encountered: