Matrix3

external class Matrix3(column0Row0: Double? = definedExternally, column1Row0: Double? = definedExternally, column2Row0: Double? = definedExternally, column0Row1: Double? = definedExternally, column1Row1: Double? = definedExternally, column2Row1: Double? = definedExternally, column0Row2: Double? = definedExternally, column1Row2: Double? = definedExternally, column2Row2: Double? = definedExternally)(source)

A 3x3 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

column2Row0

The value for column 2, 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

column2Row1

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

column0Row2

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

column1Row2

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

column2Row2

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

See also

Constructors

Link copied to clipboard
constructor(column0Row0: Double? = definedExternally, column1Row0: Double? = definedExternally, column2Row0: Double? = definedExternally, column0Row1: Double? = definedExternally, column1Row1: Double? = definedExternally, column2Row1: Double? = definedExternally, column0Row2: Double? = definedExternally, column1Row2: Double? = definedExternally, column2Row2: 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: Matrix3? = definedExternally): Matrix3

Duplicates the provided Matrix3 instance.

Link copied to clipboard
fun equalsEpsilon(right: Matrix3? = 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.