math docs
    Preparing search index...

    Function scale

    • Scale a bounding box by a vector, handling non-uniform and negative scaling

      Parameters

      • out: box2.Box2

        The output Box2

      • box: readonly [number, number, number, number]

        The input Box2

      • scale: readonly [number, number]

        The scale to apply (as a Vec2)

      Returns box2.Box2

      The scaled Box2