1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/docs/lib3x-m_mirror.md

24 lines
473 B
Markdown
Raw Normal View History

2019-06-17 10:02:25 +08:00
# m_mirror
Generate a 4x4 transformation matrix which can pass into `multmatrix` to mirror the child element on a plane through the origin.
**Since:** 1.1
## Parameters
- `v` : The normal vector of a plane intersecting the origin through which to mirror the object.
## Examples
2022-06-06 13:11:46 +08:00
use <matrix/m_mirror.scad>
2019-06-17 10:02:25 +08:00
rotate([0, 0, 10])
cube([3, 2, 1]);
multmatrix(m_mirror([1, 1, 0]))
2022-04-06 17:44:11 +08:00
rotate([0, 0, 10])
cube([3, 2, 1]);
2019-06-17 10:02:25 +08:00
2021-02-24 21:09:54 +08:00
![m_mirror](images/lib3x-m_mirror-1.JPG)
2019-06-17 10:02:25 +08:00