1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-22 14:23:23 +02:00

add m_translation doc

This commit is contained in:
Justin Lin
2019-05-02 10:11:50 +08:00
parent 42cc92e9b4
commit 8ada3785be
2 changed files with 18 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

18
docs/lib-m_translation.md Normal file
View File

@@ -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 <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)