Transform.translate

Combine the current transform with a translation.

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

  1. Transform translate(Vector2f offset)
    struct Transform
    ref
    translate
  2. Transform translate(float x, float y)

Parameters

offset Vector2f

Translation offset to apply

Return Value

Type: Transform

this

Meta