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)
  2. Transform translate(float x, float y)
    struct Transform
    ref
    translate
    (
    float x
    ,
    float y
    )

Parameters

x float

Offset to apply on X axis

y float

Offset to apply on Y axis

Return Value

Type: Transform

this

Meta