Skip to content

Api > Matrix4x4 > GetColumn()


Matrix4x4.GetColumn(number index)⚓︎

Get a column of the matrix.
The i-th column is returned as a Vector4. i must be from 1 to 4 inclusive.

Parameters:⚓︎

Name Type Description
index number The i-th column. Must be from 1 to 4 inclusive!

Returns:⚓︎

type Description
Vector4 The i-th column

Usage⚓︎

---@type Matrix4x4
local matrix4x4;

---@type number
local index;


local val0 = matrix4x4.GetColumn(index)