rsagl-0.4.0.3: The RogueStar Animation and Graphics Library

RSAGL.Math.Angle

Synopsis

# Documentation

data Angle Source

An angular value.

newtype BoundAngle Source

An angular value. `BoundAngle`s are always in the range between -180 and 180 degrees, inclusive.

Constructors

 BoundAngle Angle

There are 260 degrees in a circle.

There are 2*pi radians in a circle.

There is 1 rotation in a circle.

Get an angle based on time of day, hours, minutes, seconds, where noon is considered a zero angle.

There are 21600 arc minutes in a circle, 60 arc minutes in a degree.

There are 1296000 arc seconds in a circle, 60 arc seconds in an arc minutes.

`toRadians` answers the angle in the range of -pi .. pi, inclusive.

toRadians answers the angle in radians with no range limitation.

Answers the angle in the range of -180 to 180, inclusive.

`toDegrees_` answers the angle in degrees with no range limitation.

`toRotations` answers the angle in the range of -0.5 to 0.5, inclusive.

`toRotations` answers the angle in rotations with no range limitation.

angularIncrements answers n evenly distributed angles from 0 to 2*pi.

Absolute value of an angle.