Epok Engine

PSYQO SDK

psyqo::SoftMath::multiplyMatrix33

Function · 4 overloads

Function

Multiply two 3x3 matrices.

Belongs to
psyqo::SoftMath
Header
soft-math.hh
Overloads
4

Declaration 1 of 4

Declaration
Matrix33 multiplyMatrix33(const Matrix33 &m1, const Matrix33 &m2)

Multiply two 3x3 matrices.

ParameterTypeMeaning
m1const Matrix33 &The first matrix.
m2const Matrix33 &The second matrix.

Returns: Matrix33 — Matrix33 The result of the multiplication.

Example

C++ example
#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);

Why use it

It provides direct, allocation-conscious access to the soft math module. No exception-based error path is implied by the signature.

Trade-offs and warnings

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

Declaration 2 of 4

static
Declaration
static inline Matrix33 multiplyMatrix33(const Matrix33 *m1, const Matrix33 *m2)

Performs `multiply matrix33` as part of the soft math module.

ParameterTypeMeaning
m1const Matrix33 *Value supplied for m1. Keep referenced or pointed-to data valid for the complete call.
m2const 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.

Example

C++ example
#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);

Why use it

It provides direct, allocation-conscious access to the soft math module. No exception-based error path is implied by the signature.

Trade-offs and warnings

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

Declaration 3 of 4

static
Declaration
static inline void multiplyMatrix33(const Matrix33 *m1, const Matrix33 *m2, Matrix33 *out)

Performs `multiply matrix33` as part of the soft math module.

ParameterTypeMeaning
m1const Matrix33 *Value supplied for m1. Keep referenced or pointed-to data valid for the complete call.
m2const Matrix33 *Value supplied for m2. Keep referenced or pointed-to data valid for the complete call.
outMatrix33 *Value supplied for out. Keep referenced or pointed-to data valid for the complete call.

Returns: Nothing (void).

Example

C++ example
#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);

Why use it

It provides direct, allocation-conscious access to the soft math module. No exception-based error path is implied by the signature.

Trade-offs and warnings

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

Declaration 4 of 4

Declaration
void multiplyMatrix33(const Matrix33 &m1, const Matrix33 &m2, Matrix33 *out)

Multiply two 3x3 matrices.

ParameterTypeMeaning
m1const Matrix33 &The first matrix.
m2const Matrix33 &The second matrix.
outMatrix33 *The matrix to store the result in. May be the same as m1 or m2.

Returns: Nothing (void).

Example

C++ example
#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);

Why use it

It provides direct, allocation-conscious access to the soft math module. No exception-based error path is implied by the signature.

Trade-offs and warnings

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

Related members