waterfall-cad-0.2.2.0: Declarative CAD/Solid Modeling Library
Safe HaskellNone
LanguageHaskell2010

Waterfall.Transforms

Synopsis

Documentation

class Transformable a Source #

Typeclass for objects that can be manipulated in 3D space

Minimal complete definition

scale, uScale, rotate, translate, mirror

scale :: Transformable a => V3 Double -> a -> a Source #

Scale by different amounts along the x, y and z axes

uScale :: Transformable a => Double -> a -> a Source #

Scale uniformally along all axes

rotate :: Transformable a => V3 Double -> Double -> a -> a Source #

Rotate by Axis and Angle (in radians)

translate :: Transformable a => V3 Double -> a -> a Source #

Translate by a vector in 3D space

mirror :: Transformable a => V3 Double -> a -> a Source #

Mirror in the plane, which passes through the origin, tangent to the specified vector