Companion

object Companion

Properties

Link copied to clipboard

UNIT transformation matrix.

Functions

Link copied to clipboard
fun of(pose: Pose2D): Affine2D

Creates an Affine2D transformation matrix from a pose.

fun of(rotation: Rotation2D): Affine2D

Creates an Affine2D transformation matrix from a rotation.

fun of(translation: Vector2D): Affine2D

Creates an Affine2D transformation matrix from a translation vector.

fun of(scaling: RealVector): Affine2D

Creates an Affine2D transformation matrix from a scaling vector.

fun of(vararg affines: Affine2D): Affine2D
fun of(affineList: List<Affine2D>): Affine2D

Creates an Affine2D transformation matrix from a list of sequentially applied affine transformation matrices.

fun of(translation: Vector2D, rotation: Rotation2D): Affine2D

Creates an Affine2D transformation matrix from first applying a translation and then a rotation.