Why use it
It provides direct, allocation-conscious access to the soft math module. No exception-based error path is implied by the signature.
PSYQO SDK
Function · 4 overloads
Multiply two 3x3 matrices.
Matrix33 multiplyMatrix33(const Matrix33 &m1, const Matrix33 &m2)Multiply two 3x3 matrices.
| Parameter | Type | Meaning |
|---|---|---|
m1 | const Matrix33 & | The first matrix. |
m2 | const Matrix33 & | The second matrix. |
Returns: Matrix33 — Matrix33 The result of the multiplication.
#include "psyqo/soft-math.hh"
// Assume these named values have been initialized with valid data:
// const Matrix33 & m1
// const Matrix33 & m2
auto result = psyqo::SoftMath::multiplyMatrix33(m1, m2);It provides direct, allocation-conscious access to the soft math module. No exception-based error path is implied by the signature.
Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.
Declared in https://github.com/pcsx-redux/nugget/blob/6186b131aacc5853a9161fb076ed34ffe504552d/psyqo/soft-math.hh:87
static inline Matrix33 multiplyMatrix33(const Matrix33 *m1, const Matrix33 *m2)Performs `multiply matrix33` as part of the soft math module.
| Parameter | Type | Meaning |
|---|---|---|
m1 | const Matrix33 * | Value supplied for m1. Keep referenced or pointed-to data valid for the complete call. |
m2 | const Matrix33 * | Value supplied for m2. Keep referenced or pointed-to data valid for the complete call. |
Returns: Matrix33. Check the value before continuing when it represents success, availability or a resource handle.
#include "psyqo/soft-math.hh"
// Assume these named values have been initialized with valid data:
// const Matrix33 * m1
// const Matrix33 * m2
auto result = psyqo::SoftMath::multiplyMatrix33(m1, m2);It provides direct, allocation-conscious access to the soft math module. No exception-based error path is implied by the signature.
Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.
Declared in https://github.com/pcsx-redux/nugget/blob/6186b131aacc5853a9161fb076ed34ffe504552d/psyqo/soft-math.hh:88
static inline void multiplyMatrix33(const Matrix33 *m1, const Matrix33 *m2, Matrix33 *out)Performs `multiply matrix33` as part of the soft math module.
| Parameter | Type | Meaning |
|---|---|---|
m1 | const Matrix33 * | Value supplied for m1. Keep referenced or pointed-to data valid for the complete call. |
m2 | const Matrix33 * | Value supplied for m2. Keep referenced or pointed-to data valid for the complete call. |
out | Matrix33 * | Value supplied for out. Keep referenced or pointed-to data valid for the complete call. |
Returns: Nothing (void).
#include "psyqo/soft-math.hh"
// Assume these named values have been initialized with valid data:
// const Matrix33 * m1
// const Matrix33 * m2
// Matrix33 * out
psyqo::SoftMath::multiplyMatrix33(m1, m2, out);It provides direct, allocation-conscious access to the soft math module. No exception-based error path is implied by the signature.
Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.
Declared in https://github.com/pcsx-redux/nugget/blob/6186b131aacc5853a9161fb076ed34ffe504552d/psyqo/soft-math.hh:74
void multiplyMatrix33(const Matrix33 &m1, const Matrix33 &m2, Matrix33 *out)Multiply two 3x3 matrices.
| Parameter | Type | Meaning |
|---|---|---|
m1 | const Matrix33 & | The first matrix. |
m2 | const Matrix33 & | The second matrix. |
out | Matrix33 * | The matrix to store the result in. May be the same as m1 or m2. |
Returns: Nothing (void).
#include "psyqo/soft-math.hh"
// Assume these named values have been initialized with valid data:
// const Matrix33 & m1
// const Matrix33 & m2
// Matrix33 * out
psyqo::SoftMath::multiplyMatrix33(m1, m2, out);It provides direct, allocation-conscious access to the soft math module. No exception-based error path is implied by the signature.
Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.
Declared in https://github.com/pcsx-redux/nugget/blob/6186b131aacc5853a9161fb076ed34ffe504552d/psyqo/soft-math.hh:73
adler32Computes the adler32 checksum of a buffer.Functionadler32_bytesComputes the adler32 checksum of a buffer, only reading bytes.Functionadler32_wordsComputes the adler32 checksum of a buffer, optimized for words.Functionavsz3AVSZ3 - Average of three Z values (for Triangles) zsf3 * (sz0 + sz1 + sz2) -> otz 5 cyclesFunctionavsz4AVSZ4 - Average of four Z values (for Quads) zsf4 * (sz0 + sz1 + sz2 + sz4) -> otz 6 cyclesFunctionbtoiPerforms `btoi` as part of the msf module.FunctionclearClear a GTE register.Function templatecubicCubic Bezier curve helper function.FunctiondDivPerforms `d div` as part of the fixed point module.FunctioniDivPerforms `i div` as part of the fixed point module.Functionoperator""_fpUser-defined literal for constructing a 20.12 fixed point number.FunctionprintIntPerforms `print int` as part of the fixed point module.Function