Transform.scale

Combine the current transform with a scaling.

The center of scaling is provided for convenience as a second argument, so that you can build scaling around arbitrary points more easily (and efficiently) than the usual translate(-center).scale(factors).translate(center).

This function returns a reference to this, so that calls can be chained.

  1. void scale(float scaleX, float scaleY)
  2. void scale(float scaleX, float scaleY, float centerX, float centerY)
    struct Transform
    void
    scale
    (
    float scaleX
    ,
    float scaleY
    ,
    float centerX
    ,
    float centerY
    )

Parameters

scaleX
Type: float

Scaling factor on the X-axis

scaleY
Type: float

Scaling factor on the Y-axis

centerX
Type: float

X coordinate of the center of scaling

centerY
Type: float

Y coordinate of the center of scaling

Return Value

Type: void

this

Meta