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.

Parameters

factors Vector2f

Scaling factors

center Vector2f

Center of scaling

Return Value

Type: Transform

this

Meta