Matrix2

external class Matrix2(column0Row0: Double? = definedExternally, column1Row0: Double? = definedExternally, column0Row1: Double? = definedExternally, column1Row1: Double? = definedExternally)(source)

A 2x2 matrix, indexable as a column-major order array. Constructor parameters are in row-major order for code readability.

Parameters

column0Row0

The value for column 0, row 0. Default value - 0.0

column1Row0

The value for column 1, row 0. Default value - 0.0

column0Row1

The value for column 0, row 1. Default value - 0.0

column1Row1

The value for column 1, row 1. Default value - 0.0

See also

Constructors

Link copied to clipboard
constructor(column0Row0: Double? = definedExternally, column1Row0: Double? = definedExternally, column0Row1: Double? = definedExternally, column1Row1: Double? = definedExternally)

Types

Link copied to clipboard

Properties

Link copied to clipboard
var length: Int

Gets the number of items in the collection.

Functions

Link copied to clipboard
fun clone(result: Matrix2? = definedExternally): Matrix2

Duplicates the provided Matrix2 instance.

Link copied to clipboard
fun equalsEpsilon(right: Matrix2? = definedExternally, epsilon: Double? = definedExternally): Boolean

Compares this matrix to the provided matrix componentwise and returns true if they are within the provided epsilon, false otherwise.