Cogl.Matrix.prototype.init_translation
function init_translation(tx: Number(gfloat), ty: Number(gfloat), tz: Number(gfloat)): void { // Gjs wrapper for cogl_matrix_init_translation() }
Resets matrix to the (tx, ty, tz) translation matrix:
|[ .xx=1; .xy=0; .xz=0; .xw=tx; .yx=0; .yy=1; .yz=0; .yw=ty; .zx=0; .zy=0; .zz=1; .zw=tz; .wx=0; .wy=0; .wz=0; .ww=1; ]|
Since 2.0
- tx
x coordinate of the translation vector
- ty
y coordinate of the translation vector
- tz
z coordinate of the translation vector