![]() |
Lysa
0.0
Lysa 3D Engine
|
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... | |
|
static |
|
static |
Returns a scale matrix from per-axis scale factors.
| x | number |
| y | number |
| z | number |
|
static |
|
static |
Returns a rotation matrix around the X axis by angle radians.
| angle | number |
|
static |
Returns a rotation matrix around the Y axis by angle radians.
| angle | number |