calculate_translation


Description:

public Bool calculate_translation (MatrixEntry entry1, out float x, out float y, out float z)

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.

Parameters:

this

The first reference transform

entry1

A second reference transform

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

Returns:

true if the only difference between the transform of this and the transform of entry1 is a translation, otherwise false.