Data.Vector.Transform.Fancy
Description
Generically handle transforms, and things that are transformable.
Documentation
Class for transforms.
Associated Types
The type of vector that can be transformed. (E.g., for Transform3, this would be Vector3.)
Methods
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.)
Methods
rotateT :: Angle a => axis1 -> axis2 -> a Scalar -> tSource
Build transform: rotate in the plane defined by the two axies.
Instances
class Transform t => Transformable t x whereSource
Class for things that can be transformed (by a specific type of transform).