transform.scale
The transform that scales uniformly or per axis about a centre point.
Usage
Transform.scale(s: number | Vector3, center?: Point3): TransformParameters
snumber | Vector3One factor for all axes, or a factor per axis as
{ x, y, z }. Negative factors mirror; 0 flattens.centerPoint3The fixed point of the operation. Default
Point3.origin. In model.
Returns
A frozen transform that leaves center fixed. A zero factor gives a singular transform; it is not rejected.
Example
Transform.applyToPoint(Transform.scale(2, Point3.of(1, 1, 1)), Point3.of(2, 1, 1)) // → { x: 3, y: 1, z: 1 }