AffineTransformationMatrix1

data class AffineTransformationMatrix1(val m00: Double, val m01: Double) : Transformer<Vec1> (source)

Affine transformation matrix for one-dimensional Euclidean vectors.

Constructors

Link copied to clipboard
constructor(m00: Double, m01: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val m00: Double

The scaling factor for the x-coordinate.

Link copied to clipboard
val m01: Double

The translation factor for the x-coordinate.

Functions

Link copied to clipboard
open override fun apply(obj: Vec1): Vec1

Applies the transformation to a point.

Link copied to clipboard

Computes the determinant of the affine transformation matrix. In one-dimensional space, the determinant is simply the scaling factor (m00).

Link copied to clipboard
fun eq(other: AffineTransformationMatrix1, equivalence: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE): Boolean

Tests if two affine transformation matrices are approximately equal.

Link copied to clipboard

Get the inverse of this transformation.

Link copied to clipboard
open override fun preserveOrientation(): Boolean

Checks if the transformation preserves the orientation of points. For example: In 3D space, a translation preserves orientation, while a reflection does not.

Link copied to clipboard

Multiplies two affine transformation matrices. In one-dimensional space, this is a simple multiplication of the scaling factors and an addition of the translation factors.

Link copied to clipboard

Converts the transformation matrix to an array representation. The array is structured in row-major order.

Link copied to clipboard
open override fun toString(): String