Lysa  0.0
Lysa 3D Engine
float4x4 Class Referenceabstract

Detailed Description

4×4 matrix used for 3-D transforms (translation, rotation, scale, projection).

Lua full name: lysa.float4x4

Public Member Functions

float4x4 identity ()static
 Returns the identity matrix. More...
 
float4x4 translation (x: number, y: number, z: number)static
 Returns a translation matrix from x, y, z. More...
 
float4x4 translation (offset: float3)static
 Returns a translation matrix from a float3 offset. More...
 
float4x4 scale (x: number, y: number, z: number)static
 Returns a scale matrix from per-axis scale factors. More...
 
float4x4 scale (offset: float3)static
 Returns a scale matrix from a float3 scale vector. More...
 
float4x4 scale (s: number)static
 Returns a uniform scale matrix. More...
 
float4x4 rotation_x (angle: number)static
 Returns a rotation matrix around the X axis by angle radians. More...
 
float4x4 rotation_y (angle: number)static
 Returns a rotation matrix around the Y axis by angle radians. More...
 
float4x4 rotation_z (angle: number)static
 Returns a rotation matrix around the Z axis by angle radians. More...
 

Member Function Documentation

float4x4 identity ( )
static

Returns the identity matrix.

Returns
float4x4
float4x4 translation ( number  x,
number  y,
number  z)
static

Returns a translation matrix from x, y, z.

Parameters
xnumber
ynumber
znumber
Returns
float4x4
float4x4 translation ( float3  offset)
static

Returns a translation matrix from a float3 offset.

Parameters
offsetfloat3
Returns
float4x4
float4x4 scale ( number  x,
number  y,
number  z)
static

Returns a scale matrix from per-axis scale factors.

Parameters
xnumber
ynumber
znumber
Returns
float4x4
float4x4 scale ( float3  offset)
static

Returns a scale matrix from a float3 scale vector.

Parameters
offsetfloat3
Returns
float4x4
float4x4 scale ( number  s)
static

Returns a uniform scale matrix.

Parameters
snumber
Returns
float4x4
float4x4 rotation_x ( number  angle)
static

Returns a rotation matrix around the X axis by angle radians.

Parameters
anglenumber
Returns
float4x4
float4x4 rotation_y ( number  angle)
static

Returns a rotation matrix around the Y axis by angle radians.

Parameters
anglenumber
Returns
float4x4
float4x4 rotation_z ( number  angle)
static

Returns a rotation matrix around the Z axis by angle radians.

Parameters
anglenumber
Returns
float4x4