Skip to content
Select language:English

MCL 1.3.5

operator fun times(scalar: Float): Mat2f

Multiplies the matrix by a scalar.

Return

The product of the matrix and the scalar.

Parameters

scalar

The scalar to multiply by.


operator fun times(other: Mat2f): Mat2f

Multiplies the matrix by another matrix.

Return

The product of the two matrices.

Parameters

other

The matrix to multiply by.


operator fun times(v: Vec2f): Vec2f

Multiplies the matrix by a 2D vector.

Return

The product of the matrix and the vector.

Parameters

v

The vector to multiply by.