Epok Engine

PSYQO SDK

psyqo::SoftMath::matrixDeterminant3

Function · 2 overloads

Function

Compute the determinant of a 3x3 matrix.

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

Declaration 1 of 2

Declaration
FixedPoint<> matrixDeterminant3(const Matrix33 &m)

Compute the determinant of a 3x3 matrix.

ParameterTypeMeaning
mconst Matrix33 &The matrix.

Returns: FixedPoint<> — FixedPoint<> The determinant.

Example

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

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

auto result = psyqo::SoftMath::matrixDeterminant3(m);

Why use it

Fixed-point inputs keep console behavior deterministic and avoid software floating-point work.

Trade-offs and warnings

Stay within the documented range and account for quantization before chaining several operations. 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:172

Declaration 2 of 2

static
Declaration
static inline FixedPoint<> matrixDeterminant3(const Matrix33 *m)

Performs `matrix determinant3` 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.

Returns: FixedPoint<>. 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 * m

auto result = psyqo::SoftMath::matrixDeterminant3(m);

Why use it

Fixed-point inputs keep console behavior deterministic and avoid software floating-point work.

Trade-offs and warnings

Stay within the documented range and account for quantization before chaining several operations. 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:173

Related members