Generically handle transforms, and things that are transformable.
Documentation
Class for transforms.
The type of vector that can be transformed. (E.g., for Transform3
, this would be Vector3
.)
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 Transform t => Transformable t x whereSource
Class for things that can be transformed (by a specific type of transform).