Skip to content

Api > Matrix4x4 > MultiplyVector()


Matrix4x4.MultiplyVector(Vector3 vector)⚓︎

Transforms a direction by this matrix.

Parameters:⚓︎

Name Type Description
vector Vector3 direction

Returns:⚓︎

type Description
Vector3 transformed 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.