MetricTransformationParameters

data class MetricTransformationParameters(var scale: Double = 1.0, var rotationAngle: Double = 0.0, var horizontalTranslation: Double = 0.0, var verticalTranslation: Double = 0.0) : Serializable

Contains parameters defining a 2D metric transformation.

Constructors

Link copied to clipboard
constructor(scale: Double = 1.0, rotationAngle: Double = 0.0, horizontalTranslation: Double = 0.0, verticalTranslation: Double = 0.0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

horizontal translation.

Link copied to clipboard

rotation angle expressed in radians.

Link copied to clipboard

amount of scale.

Link copied to clipboard

vertical translation.

Functions

Link copied to clipboard
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.

Link copied to clipboard

Converts provided metric transformation parameters into a matrix and returns the result as a new instance.

fun toMatrix(result: Matrix)

Converts provided metric transformation parameters into a matrix.