Epok Engine

PSYQO SDK

psyqo::SoftMath::matrixVecMul3

Function · 2 overloads

Function

Performs `matrix vec mul3` as part of the soft math module.

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

Declaration 1 of 2

static
Declaration
static inline void matrixVecMul3(const Matrix33 *m, const Vec3 *v, Vec3 *out)

Performs `matrix vec mul3` as part of the soft math module.

ParameterTypeMeaning
mconst Matrix33 *Value supplied for m. Keep referenced or pointed-to data valid for the complete call.
vconst Vec3 *Value supplied for v. Keep referenced or pointed-to data valid for the complete call.
outVec3 *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 * m
// const Vec3 * v
// Vec3 * out

psyqo::SoftMath::matrixVecMul3(m, v, 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:109

Declaration 2 of 2

Declaration
void matrixVecMul3(const Matrix33 &m, const Vec3 &v, Vec3 *out)

Multiply a 3x3 matrix by a 3D vector.

ParameterTypeMeaning
mconst Matrix33 &The matrix.
vconst Vec3 &The vector.
outVec3 *The vector to store the result in. May be the same as v.

Returns: Nothing (void).

Example

C++ example
#include "psyqo/soft-math.hh"

// Assume these named values have been initialized with valid data:
// const Matrix33 & m
// const Vec3 & v
// Vec3 * out

psyqo::SoftMath::matrixVecMul3(m, v, 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:108

Related members