Source Academy Modules
    Preparing search index...

    Function scale

    • Scales the specified Operable in the x, y, and z directions using the specified factors. Scaling is done about the origin (0, 0, 0).

      For example, a factor of 0.5 results in a smaller Shape, while a factor of 2 results in a larger Shape. A factor of 1 results in the original Shape. Factors must be greater than 0.

      Parameters

      • operable: Operable

        Shape or Group

      • xFactor: number

        x scaling factor

      • yFactor: number

        y scaling factor

      • zFactor: number

        z scaling factor

      Returns Operable

      scaled Shape