Mul

function

Mul(_matrix, ...)

Description

Multiplies matrices.

Arguments

Name Type Description
_matrix BBMOD_Matrix The first matrix to multiply with.

Returns

BBMOD_Matrix The resulting matrix.

Example

var _world = new BBMOD_Matrix().FromWorld();
var _view = new BBMOD_Matrix().FromView();
var _projection = new BBMOD_Matrix().FromProjection();
var _worldViewProjection = _world.Mul(_view, _projection);

Please note that this example only shows that you can pass multiple matrices to this method. If you would actually like to get the world * view * projection matrix, you can simply call BBMOD_Matrix.FromWorldViewProjection.

Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on May 18, 2022 using GMDoc.