Skip to main content

Matrix4x4.MultiplyPoint(Vector3 point)

Transforms a position by this matrix (generic).

Parameters:

NameTypeDescription
pointVector3point

Returns:

typeDescription
Vector3Position v transformed by the current fully arbitrary matrix

Usage

---@type Matrix4x4
local matrix4x4;

---@type Vector3
local point;


local val0 = matrix4x4.MultiplyPoint(point)

Extra Detail

Returns a position v transformed by the current fully arbitrary matrix. If the matrix is a regular 3D transformation matrix, it is much faster to use MultiplyPoint3x4 instead. MultiplyPoint is slower, but can handle projective transformations as well.