1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-25 05:51:41 +02:00
Files
dotSCAD/docs/lib-m_translation.md
Justin Lin 69f43afe46 update doc
2019-05-02 10:14:39 +08:00

19 lines
413 B
Markdown

# m_translation
Generate a 4x4 transformation matrix which can pass into `multmatrix` to translates (moves) its child elements along the specified vector.
## Parameters
- `v` : Elements will be translated along the vector.
## Examples
include <m_translation.scad>;
cube(2, center = true);
multmatrix(m_translation([5, 0, 0]))
sphere(1,center = true);
![m_translation](images/lib-m_translation-1.JPG)