Math
Maths types shared by every schema, tuft’s in Zig. Row-major for row vectors (p * m). Radians.
A struct, 0x8 bytes, aligned to 4.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | x |
f32 |
|
| 0x4 | y |
f32 |
x: numbery: numberx: numbery: numberfloat Xfloat Yfloat xfloat ypub x: f32pub y: f32x: f32y: f32float xfloat yA struct, 0xc bytes, aligned to 4.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | x |
f32 |
|
| 0x4 | y |
f32 |
|
| 0x8 | z |
f32 |
x: numbery: numberz: numberx: numbery: numberz: numberfloat Xfloat Yfloat Zfloat xfloat yfloat zpub x: f32pub y: f32pub z: f32x: f32y: f32z: f32float xfloat yfloat zA struct, 0x10 bytes, aligned to 4.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | x |
f32 |
|
| 0x4 | y |
f32 |
|
| 0x8 | z |
f32 |
|
| 0xc | w |
f32 |
x: numbery: numberz: numberw: numberx: numbery: numberz: numberw: numberfloat Xfloat Yfloat Zfloat Wfloat xfloat yfloat zfloat wpub x: f32pub y: f32pub z: f32pub w: f32x: f32y: f32z: f32w: f32float xfloat yfloat zfloat ww is the real part.
A struct, 0x10 bytes, aligned to 4.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | x |
f32 |
|
| 0x4 | y |
f32 |
|
| 0x8 | z |
f32 |
|
| 0xc | w |
f32 |
x: numbery: numberz: numberw: numberx: numbery: numberz: numberw: numberfloat Xfloat Yfloat Zfloat Wfloat xfloat yfloat zfloat wpub x: f32pub y: f32pub z: f32pub w: f32x: f32y: f32z: f32w: f32float xfloat yfloat zfloat wm[row * 4 + column], translation in the last row.
A struct, 0x40 bytes, aligned to 4.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | m |
f32[16] |
m: Array<number>m: (number)[]Wraith.Raw.f32x16 Mfloat m[16]pub m: [f32; 16]m: [16]f32float m[16]wraith.io · Mods on the Hub · Get Wraith
Made with ♥ by Asgard
