Skip to main content

Quat

Client Server

Constructors

Quat()

Quat(number, Vec3)

Quat(Mat4)

Quat(Mat3)

Quat(number, number, number, number)

Quat(Quat)

Metamethods

Quat __add(Quat, Quat)

Quat __sub(Quat, Quat)

Quat __mul(Quat, Quat)

Vec4 __mul(Quat, Vec4)

Vec3 __mul(Quat, Vec3)

Quat __mul(number, Quat)

Quat __mul(Quat, number)

Quat __div(Quat, number)

Quat __pow(Quat, number)

Quat __unm(Quat)

boolean __eq(Quat, Quat)

Methods

number Len()

number Length()

number SqrLength()

boolean IsZero()

number Dot(Quat)

Quat Lerp(Quat, Quat, number)

Quat Slerp(Quat, Quat, number)

Quat Sterp(Quat, Quat, number)

Quat Sterp(Quat, Quat, number, Vec3)

nil Normalize()

Quat GetNormalized()

nil Invert()

Quat GetInversed()

nil Rotate(Quat, number, Vec3)

Quat GetRotated(Quat, number, Vec3)

Quat GetConjugate()

number GetPitch(Quat)

number GetYaw(Quat)

number GetRoll(Quat)

Vec3 GetEuler(Quat)

number GetAngle(Quat)

Vec3 GetAxis()

Quat Euler(number, number, number)

Quat Euler(Vec3)

Quat Axes(Vec3, Vec3)

Quat AngleAxis(number, Vec3)

Quat LookAt(Vec3)

Quat LookAt(Vec3, Vec3)

string __tostring(Quat)

Properties

number x

number y

number z

number w

Quat identity