Safe Haskell | None |
---|---|
Language | Haskell2010 |
Basic types associated with geometry.
Documentation
An abstract angle. Internally, angles are represented as a 64-bit integer with each unit contribute 1/2^64 fraction of a complete circle. This means that angles are accurate up to a resolution of 2 π / 2^64 radians. Angles form a group under the angular addition and the fact that these are represented as integers means one can expect high speed accurate angle arithmetic.
When expressing angles one can use a more convenient notation:
myAngle = degree 21.71167 yourAngle = degree 21 <> minute 42 <> second 42
Bounded Angle Source # | |
Enum Angle Source # | |
Eq Angle Source # | |
Ord Angle Source # | |
Read Angle Source # | |
Show Angle Source # | |
Monoid Angle Source # | |
Default Angle Source # | |
Group Angle Source # | |
Unbox Angle Source # | |
Angular Angle Source # | |
Vector Vector Angle Source # | |
MVector MVector Angle Source # | |
data Vector Angle Source # | |
data MVector s Angle Source # | |
toDegree :: Fractional r => Angle -> r Source #
Measure angle in degrees. This conversion may lead to loss of precision.