Mat2

class Mat2

Constructors

Link copied to clipboard
fun Mat2()

Default constructor matrix (0,0),(0,0) by default.

Link copied to clipboard
fun Mat2(radians: Double)

Constructs and sets the matrix up to be a rotation matrix that stores the angle specified in the matrix.

Functions

Link copied to clipboard
fun mul(v: Vec2?): Vec2
fun mul(v: Vec2?, out: Vec2): Vec2
Link copied to clipboard
fun set(m: Mat2)

Sets current object matrix to be the same as the supplied parameters matrix.

fun set(radians: Double)

Sets the matrix up to be a rotation matrix that stores the angle specified in the matrix.

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

Properties

Link copied to clipboard
var row1: Vec2
Link copied to clipboard
var row2: Vec2