Skip to main content

Matrix4x4.MultiplyVector(Vector3 vector)

Transforms a direction by this matrix.

Parameters:

NameTypeDescription
vectorVector3direction

Returns:

typeDescription
Vector3transformed direction by matrix

Usage

---@type Matrix4x4
local matrix4x4;

---@type Vector3
local vector;


local val0 = matrix4x4.MultiplyVector(vector)

Extra Detail

This function is similar to MultiplyPoint; but it transforms directions and not positions. When transforming a direction, only the rotation part of the matrix is taken into account.