1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-24 05:21:32 +02:00
Files
dotSCAD/docs/lib-m_scaling.md
Justin Lin 9e26bd35ec add since:
2019-05-02 10:44:19 +08:00

22 lines
391 B
Markdown

# m_scaling
Generate a 4x4 transformation matrix which can pass into `multmatrix` to scale its child elements using the specified vector.
**Since:** 1.1
## 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);
![m_scaling](images/lib-m_scaling-1.JPG)