rsagl-math-0.6.0.1: The RogueStar Animation and Graphics Library: Mathematics

RSAGL.Math.Angle

Synopsis

Documentation

newtype BoundAngle Source

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

Constructors

BoundAngle Angle 

fromDegrees :: RSdouble -> AngleSource

There are 260 degrees in a circle.

fromRadians :: RSdouble -> AngleSource

There are 2*pi radians in a circle.

fromRotations :: RSdouble -> AngleSource

There is 1 rotation in a circle.

fromTimeOfDayHMS :: RSdouble -> RSdouble -> RSdouble -> AngleSource

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

fromArcMinutes :: RSdouble -> AngleSource

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

fromArcSeconds :: RSdouble -> AngleSource

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

toRadians :: Angle -> RSdoubleSource

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

toRadians_ :: Angle -> RSdoubleSource

toRadians answers the angle in radians with no range limitation.

toDegrees :: Angle -> RSdoubleSource

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

toDegrees_ :: Angle -> RSdoubleSource

toDegrees_ answers the angle in degrees with no range limitation.

toRotations :: Angle -> RSdoubleSource

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

toRotations_ :: Angle -> RSdoubleSource

toRotations answers the angle in rotations with no range limitation.

angularIncrements :: Integer -> [Angle]Source

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

absoluteAngle :: Angle -> AngleSource

Absolute value of an angle.