translate

fun translate(offset: Vec2f)

Translates the position by the offset vector in local coordinates.

Parameters

offset

the amount to translate by


fun translate(x: Float, y: Float)

Translates the position by the offset vector in local coordinates.

Parameters

x

the amount to translate x by

y

the amount to translate y by