fromMatrix

fun fromMatrix(matrix: Matrix, assumePositiveScale: Boolean = true)

Converts provided matrix into metric transformation parameters. Notice that matrix form contains an ambiguity respect scale and rotation, since a negative scale also implies a rotation of 180 degrees.

Parameters

matrix

matrix to extract parameters from.

assumePositiveScale

true indicates that a positive scale value is assumed to solve ambiguity respect scale contained in matrix form. If false, negative scale is assumed. By default this is true.

Throws

if provided matrix does not contain values valid for a metric transformation.