HGamer3D-0.8.0: Toolset for the Haskell Game Programmer

Safe HaskellNone
LanguageHaskell98

HGamer3D.Data.Angle

Contents

Description

Angles as Degrees or Radians, based on Float datatype

Synopsis

Data definitions and conversions

data Angle Source #

construct an Angle either by giving it in degrees or radians

Constructors

Rad Float 
Deg Float 

Instances

asRad :: Angle -> Float Source #

value of an Angle as radiant

asDeg :: Angle -> Float Source #

value of an Angle as degree

Mathematical functions