Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


operator *

Multiplies two matrices.
Read time 1 minuteLast updated 13 days ago

Definition

operator *(Matrix2D, Matrix2D)

Multiplies two matrices.
public static Matrix2D operator *(Matrix2D lhs, Matrix2D rhs)

Parameters

The left hand side matrix of the operation

The right hand side matrix of the operation

Returns

Type

Description

Matrix2DThe multiplied matrix

operator *(Matrix2D, Vector2)

Transforms a Vector2 by a matrix.
public static Vector2 operator *(Matrix2D lhs, Vector2 vector)

Parameters

The left hand side matrix of the operation

vector

The vector the matrix will be multiplied with

Returns

Type

Description

Vector2The transformed vector