Transform.rotate

Combine the current transform with a rotation.

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

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

  1. void rotate(float angle)
  2. void rotate(float angle, float centerX, float centerY)
    struct Transform
    void
    rotate
    (
    float angle
    ,
    float centerX
    ,
    float centerY
    )

Parameters

angle
Type: float

Rotation angle, in degrees

Return Value

Type: void

this

Meta