Mat3

data class Mat3(elements: List<Float>) : BaseMat<Mat3, Vec3>

A 3×3 matrix.

Constructors

Link copied to clipboard
fun Mat3(elements: List<Float>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun adj(): Mat3

Returns an adjugate of this matrix.

Link copied to clipboard
open override fun det(): Float

Returns a determinant of this matrix.

Link copied to clipboard
open operator override fun get(row: Int, col: Int): Float

Returns element of this matrix at a given row and a given column.

Link copied to clipboard
open override fun inverse(): Mat3

Returns an inverse of this matrix.

Link copied to clipboard
open operator override fun times(other: Mat3): Mat3

Multiplies this matrix by the other matrix of the same size.

open operator override fun times(vector: Vec3): Vec3

Multiplies this matrix by a given vector.

open operator override fun times(number: Float): Mat3

Multiplies this matrix by a given number.

Link copied to clipboard
open override fun toFloatArray(): FloatArray

Returns an array of elements of this matrix.

Link copied to clipboard
fun toMat2(): Mat2

Returns a 2×2 submatrix of this matrix, obtained by deleting the last row and the last column of this 4×4 matrix.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of this matrix.

Link copied to clipboard
open override fun transpose(): Mat3

Returns a transpose of this matrix.