Generically handle transforms, and things that are transformable.
- class HasSpace t => Transform t where
- transformP :: t -> Point t -> Point t
- translateT :: Point t -> t
- scaleT :: Point t -> t
- scaleT_ :: Scalar -> t
- class Transform t => Rotate t axis1 axis2 where
- class HasSpace x => Transformable x where
Documentation
class HasSpace t => Transform t whereSource
Class for transforms.
transformP :: t -> Point t -> Point tSource
Transform a vector.
translateT :: Point t -> tSource
Build transform: translate by the given vector.
Build transform: scale each coordinate axis according to the given vector.
Build transform: scale all axies uniformly.
class Transform t => Rotate t axis1 axis2 whereSource
Class for performing rotationes. (The rotations that exist vary with the number of spatial dimensions available.)
class HasSpace x => Transformable x whereSource
Class for things that can be transformed. Includes instances for all the vector types.