AC-Angle-1.0: Angles in degrees and radians.

Data.Angle

Description

Deal with angles measured in degrees or radians.

Names are kept deliberately different from the standard prelude to avoid name clashes.

Synopsis

Documentation

newtype Radians x Source

An angle in radians.

Constructors

Radians x 

Instances

Angle Radians 
Eq x => Eq (Radians x) 
Fractional x => Fractional (Radians x) 
Num x => Num (Radians x) 
Ord x => Ord (Radians x) 
Show x => Show (Radians x) 

newtype Degrees x Source

An angle in degrees.

Constructors

Degrees x 

Instances

Angle Degrees 
Eq x => Eq (Degrees x) 
Fractional x => Fractional (Degrees x) 
Num x => Num (Degrees x) 
Ord x => Ord (Degrees x) 
Show x => Show (Degrees x) 

degrees :: Floating x => Radians x -> Degrees xSource

Convert from radians to degrees.

radians :: Floating x => Degrees x -> Radians xSource

Convert from degrees to radians.

class Angle a whereSource

Type-class for angles.

Methods

sine :: Floating x => a x -> xSource

cosine :: Floating x => a x -> xSource

tangent :: Floating x => a x -> xSource

arcsine :: Floating x => x -> a xSource

arccosine :: Floating x => x -> a xSource

arctangent :: Floating x => x -> a xSource