of

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(matrix: RealMatrix): Affine2D

Creates an Affine2D transformation matrix from a matrix with column and row dimension of 2.


fun of(rotation: Rotation2D): Affine2D

Creates an Affine2D transformation matrix from a rotation.


fun of(affineList: List<Affine2D>): Affine2D
fun of(vararg affines: 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.


fun of(pose: Pose2D): Affine2D

Creates an Affine2D transformation matrix from a pose.