data class AffineSequence2D: Any

Represents a sequence of affine transformation matrices in 2D.

Fields

Name Description
val size: Int

number of Affine2D matrices contained in list

val affineList: List<Affine2D>

list of consecutively applied Affine2D transformation matrices

Constructors

<init>

constructor(affine: Affine2D)

Parameters

Name Description
affine: Affine2D

<init>

constructor(affineList: List<Affine2D>)

Represents a sequence of affine transformation matrices in 2D.

Parameters

Name Description
affineList: List<Affine2D>

list of consecutively applied Affine2D transformation matrices

Methods

isEmpty

fun isEmpty(): Boolean

ReturnValue

Name Description
Boolean

isNotEmpty

fun isNotEmpty(): affineList.isNotEmpty()

ReturnValue

Name Description
affineList.isNotEmpty()

solve

fun solve(): Affine2D

Solves all contained Affine2D by multiplication and returns the resulting transformation matrix.

ReturnValue

Name Description
Affine2D

transformation matrix that applies the sequence of Affine2D matrices consecutively

CompanionObject

AffineSequence2D

data class AffineSequence2D: Any

Represents a sequence of affine transformation matrices in 2D.

Fields

Name Description
val EMPTY: AffineSequence2D(listOf())

Methods

of

fun of(vararg affines: Affine2D): (vararg affines: Affine2D)

Creates an AffineSequence2D by provided affines list.

Parameters

Name Description
vararg affines: Affine2D

ReturnValue

Name Description
(vararg affines: Affine2D)