|
Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
|
Functions | |
| void | fastNormVec (q24_8 *xp, q24_8 *yp) |
| Quickly normalize a q24_8 vector, in-place. | |
| vec_q24_8 | fpvNorm (vec_q24_8 vec) |
| Normalize and return a vector. | |
| q24_8 | fpvDot (vec_q24_8 a, vec_q24_8 b) |
| Compute the dot product of two vectors. | |
| q24_8 | fpvSqMag (vec_q24_8 a) |
| Compute the squared magnitude of a vector. | |
| vec_q24_8 | fpvAdd (vec_q24_8 a, vec_q24_8 b) |
| Add two vectors. | |
| vec_q24_8 | fpvSub (vec_q24_8 a, vec_q24_8 b) |
| Subtract two vectors. | |
| vec_q24_8 | fpvMulSc (vec_q24_8 vec, q24_8 scalar) |
| Multiply a vector by a scalar. | |
| vec_q24_8 | fpvDivSc (vec_q24_8 vec, q24_8 scalar) |
| Divide a vector by a scalar. | |
| float | fixToFloat (q24_8 fx) |
| Convert a q24_8 to floating point. | |
Quickly normalize a q24_8 vector, in-place.
| xp | The X component of the vector, normalized in-place |
| yp | The Y component of the vector, normalized in-place |
Normalize and return a vector.
| vec | The vector to normalize |
Compute the dot product of two vectors.
| a | A vector to dot |
| b | The other vector to dot |
Compute the squared magnitude of a vector.
| a | The vector to compute the squared magnitude of |
Add two vectors.
| a | A vector to add |
| b | The other vector to add |
Subtract two vectors.
| a | A vector to subtract from |
| b | The other vector to subtract |
Multiply a vector by a scalar.
| vec | A vector multiply |
| scalar | A scalar to multiply the vector by |
Divide a vector by a scalar.
| vec | A vector divide |
| scalar | A scalar to divide the vector by |