Companion

object Companion

Properties

Link copied to clipboard
const val MATRIX_VALUES_LENGTH: Int = 9

Length of arrays to store matrix values.

Functions

Link copied to clipboard
fun fromMatrix(matrix: Matrix, assumePositiveScale: Boolean = true): MetricTransformationParameters

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

fun fromMatrix(matrix: Matrix, result: MetricTransformationParameters, 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.

Link copied to clipboard

Converts provided metric transformation parameters into a matrix.