diff --git a/docs/images/lib-m_translation-1.JPG b/docs/images/lib-m_translation-1.JPG new file mode 100644 index 00000000..3f1f834d Binary files /dev/null and b/docs/images/lib-m_translation-1.JPG differ diff --git a/docs/lib-m_translation.md b/docs/lib-m_translation.md new file mode 100644 index 00000000..d478869e --- /dev/null +++ b/docs/lib-m_translation.md @@ -0,0 +1,18 @@ +# m_translation + +Generate a 4x4 transformation matrix which can pass into `multmatrix` to translates (moves) its child elements along the specified vector. + +## Parameters + +- `v` : The normal vector of a plane intersecting the origin through which to mirror the object. + +## Examples + + include ; + + cube(2, center = true); + multmatrix(m_translation([5, 0, 0])) + sphere(1,center = true); + +![m_translation](images/lib-m_translation-1.JPG) +