mat3¶
Struct | orca.geometry
3x3 transformation matrix
Overview¶
Fields¶
| Field | Type | Description |
|---|---|---|
v |
float[9] |
Matrix elements in column-major order |
Methods¶
identity() → mat3¶
Creates an identity matrix
Returns: mat3 — 3x3 identity matrix
normal(mat4) → mat3¶
Creates normal transformation matrix from 4x4 matrix
| Parameter | Type | Description |
|---|---|---|
matrix |
mat4 |
Source 4x4 transformation matrix |
Returns: mat3 — Normal transformation matrix
translate(vec2)¶
Applies translation to the matrix
| Parameter | Type | Description |
|---|---|---|
offset |
vec2 |
Translation offset |
scale(vec2)¶
Applies scaling to the matrix
| Parameter | Type | Description |
|---|---|---|
scale |
vec2 |
Scale factors for X and Y axes |