mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-02-23 09:03:58 +01:00
21 lines
424 B
Markdown
21 lines
424 B
Markdown
# m_translation
|
|
|
|
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
|
|
|
|
use <matrix/m_translation.scad>;
|
|
|
|
cube(2, center = true);
|
|
multmatrix(m_translation([5, 0, 0]))
|
|
sphere(1);
|
|
|
|

|
|
|