1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/docs/lib2x-m_translation.md
Justin Lin c62b4ef638 rename
2020-03-30 20:13:47 +08:00

453 B

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

use <matrix/m_translation.scad>;

cube(2, center = true); 
multmatrix(m_translation([5, 0, 0]))
    sphere(1);

m_translation