mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-07-31 03:50:27 +02:00
add m_scaling doc
This commit is contained in:
BIN
docs/images/lib-m_scaling-1.JPG
Normal file
BIN
docs/images/lib-m_scaling-1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
19
docs/lib-m_scaling.md
Normal file
19
docs/lib-m_scaling.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# m_scaling
|
||||
|
||||
Generate a 4x4 transformation matrix which can pass into `multmatrix` to scale its child elements using the specified vector.
|
||||
|
||||
## Parameters
|
||||
|
||||
- `v` : Elements will be scaled using the vector.
|
||||
|
||||
## Examples
|
||||
|
||||
include <m_scaling.scad>;
|
||||
|
||||
cube(10);
|
||||
translate([15, 0, 0])
|
||||
multmatrix(m_scaling([0.5, 1, 2]))
|
||||
cube(10);
|
||||
|
||||

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