Epok Engine

PSYQO SDK

psyqo::SoftMath::scaleMatrix33

Function · 1 overload

Function

Scale a 3x3 matrix by a scalar.

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

Declaration

Declaration
void scaleMatrix33(Matrix33 *m, FixedPoint<> s)

Scale a 3x3 matrix by a scalar.

ParameterTypeMeaning
mMatrix33 *The matrix to scale.
sFixedPoint<>The scalar to scale by.

Returns: Nothing (void).

Example

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

// Assume these named values have been initialized with valid data:
// Matrix33 * m
// FixedPoint<> s

psyqo::SoftMath::scaleMatrix33(m, s);

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:99

Related members