Graphics.Gloss.Geometry.Vector
Description
Geometric functions concerning vectors.
Documentation
rotateV :: Float -> Vector -> VectorSource
Rotate a vector by an angle (in radians). +ve angle is counter-clockwise.
normaliseV :: Vector -> VectorSource
Normalise a vector, so it has a magnitude of 1.
unitVectorAtAngle :: Float -> VectorSource
Produce a unit vector at a given angle relative to the +ve x-axis. The provided angle is in radians.