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:
BIN
docs/images/lib-m_translation-1.JPG
Normal file
BIN
docs/images/lib-m_translation-1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
18
docs/lib-m_translation.md
Normal file
18
docs/lib-m_translation.md
Normal 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);
|
||||
|
||||

|
||||
|
Reference in New Issue
Block a user