Mat

interface Mat<M : Mat<M, V>, V : Vec>

A common interface for square matrix implementations.

Functions

adj
Link copied to clipboard
common
abstract fun adj(): M
Returns an adjugate of this matrix.
det
Link copied to clipboard
common
abstract fun det(): Float
Returns a determinant of this matrix.
get
Link copied to clipboard
common
abstract operator fun get(row: Int, col: Int): Float
Returns element of this matrix at a given row and a given column.
inverse
Link copied to clipboard
common
abstract fun inverse(): M
Returns an inverse of this matrix.
times
Link copied to clipboard
common
abstract operator fun times(other: M): M
Multiplies this matrix by the other matrix of the same size.
abstract operator fun times(vector: V): V
Multiplies this matrix by a given vector.
abstract operator fun times(number: Float): M
Multiplies this matrix by a given number.
toFloatArray
Link copied to clipboard
common
abstract fun toFloatArray(): FloatArray
Returns an array of elements of this matrix.
transpose
Link copied to clipboard
common
abstract fun transpose(): M
Returns a transpose of this matrix.

Inheritors

BaseMat
Link copied to clipboard