1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-02-25 01:53:12 +01:00
dotSCAD/docs/lib2-m_scaling.md

24 lines
427 B
Markdown
Raw Normal View History

2019-05-02 10:27:52 +08:00
# m_scaling
2019-06-24 07:29:42 +08:00
The dir changed since 2.0.
2019-05-02 10:27:52 +08:00
Generate a 4x4 transformation matrix which can pass into `multmatrix` to scale its child elements using the specified vector.
2019-05-02 10:44:19 +08:00
**Since:** 1.1
2019-05-02 10:27:52 +08:00
## Parameters
- `v` : Elements will be scaled using the vector.
## Examples
2019-06-22 14:15:18 +08:00
include <matrix/m_scaling.scad>;
2019-05-02 10:27:52 +08:00
cube(10);
translate([15, 0, 0])
multmatrix(m_scaling([0.5, 1, 2]))
cube(10);
![m_scaling](images/lib-m_scaling-1.JPG)