1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-25 13:59:04 +02:00
Files
dotSCAD/docs/lib2-m_translation.md
Justin Lin 5f3bfb391d update doc
2019-06-24 07:29:42 +08:00

23 lines
455 B
Markdown

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