Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

scale

An operation that scales a part.

See the inits for examples on how to use this operation.

Parameters

  • v: Vec3

init(s: Scalar)

Uniform scale.

  • s - Scale factor.

Examples:

  • Rect(42mm).scale(200%);: Scale a rectangle by 200%.

init(x: Scalar = 1, y: Scalar = 1, z: Scalar = 1)

Non-uniform scale.

  • x - Scale factor in X direction.
  • y - Scale factor in Y direction.
  • z - Scale factor in Z direction.

Examples:

  • Rect(42mm).scale(x = 2.0);: Scale a rectangle in X direction.