Skip to main content

Mat4

Client Server

Constructors

Mat4()

Mat4(number)

Mat4(number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number)

Mat4(Vec4, Vec4, Vec4, Vec4)

Mat4(Vec4, Vec4, Vec4, Vec4i)

Mat4(Vec4, Vec4, Vec4i, Vec4)

Mat4(Vec4, Vec4, Vec4i, Vec4i)

Mat4(Vec4, Vec4i, Vec4, Vec4)

Mat4(Vec4, Vec4i, Vec4, Vec4i)

Mat4(Vec4, Vec4i, Vec4i, Vec4)

Mat4(Vec4, Vec4i, Vec4i, Vec4i)

Mat4(Vec4i, Vec4, Vec4, Vec4)

Mat4(Vec4i, Vec4, Vec4, Vec4i)

Mat4(Vec4i, Vec4, Vec4i, Vec4)

Mat4(Vec4i, Vec4, Vec4i, Vec4i)

Mat4(Vec4i, Vec4i, Vec4, Vec4)

Mat4(Vec4i, Vec4i, Vec4, Vec4i)

Mat4(Vec4i, Vec4i, Vec4i, Vec4)

Mat4(Vec4i, Vec4i, Vec4i, Vec4i)

Mat4(Mat3)

Mat4(Mat4)

Mat4(Quat)

Metamethods

Vec4 __index(Mat4, integer)

nil __newindex(Mat4, integer, Vec4)

Mat4 __add(Mat4, Mat4)

Mat4 __add(Mat4, number)

Mat4 __add(number, Mat4)

Mat4 __sub(Mat4, Mat4)

Mat4 __sub(Mat4, number)

Mat4 __sub(number, Mat4)

Mat4 __mul(Mat4, Mat4)

Mat4 __mul(Mat4, number)

Mat4 __mul(number, Mat4)

Mat4 __div(Mat4, Mat4)

Mat4 __div(Mat4, number)

Mat4 __div(number, Mat4)

Vec4 __div(Vec4, Mat4)

Mat4 __unm(Mat4)

boolean __eq(Mat4, Mat4)

Methods

number GetDeterminant()

Mat4 Transpose()

Mat4 GetTransposed()

Mat4 Invert()

Mat4 GetInverted()

boolean IsIdentity(number)

boolean IsZero()

boolean IsSingular()

boolean IsAnyNaN()

Mat4 Translation(number, number, number)

Mat4 Translation(Vec3)

Mat4 RotationXYZ(number, number, number)

Mat4 RotationXYZ(Vec3)

Mat4 RotationYawPitchRoll(number, number, number)

Mat4 RotationYawPitchRoll(Vec3)

Mat4 Scaling(number, number, number)

Mat4 Scaling(Vec3)

Mat4 LookAt(Vec3, Vec3, Vec3)

Mat4 Perspective(number, number, number, number)

Mat4 Ortho(number, number, number, number, number, number)

Properties

Vec3 xaxis

Vec3 yaxis

Vec3 zaxis

Vec3 translation

Vec3 row1

Vec3 row2

Vec3 row3

Vec3 row4