Cogl.MatrixEntry.prototype.calculate_translation
function calculate_translation(entry1: Cogl.MatrixEntry): [return_value: Cogl.Bool, x: Number(gfloat), y: Number(gfloat), z: Number(gfloat)] { // Gjs wrapper for cogl_matrix_entry_calculate_translation() }
Determines if the only difference between two transforms is a translation and if so returns what the x, y, and z components of the translation are.
If the difference between the two translations involves anything other than a translation then the function returns false.
- entry1
A second reference transform
- return_value
true if the only difference between the transform of entry0 and the transform of entry1 is a translation, otherwise false.
- x
The destination for the x-component of the translation
- y
The destination for the y-component of the translation
- z
The destination for the z-component of the translation