Epok Engine

PSYQO SDK

psyqo::SoftMath::generateRotationMatrix33

Function · 4 overloads

Function

Generate a rotation matrix for a given angle and axis.

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

Declaration 1 of 4

Declaration
Matrix33 generateRotationMatrix33(Angle t, Axis a, const Trig<> &trig)

Generate a rotation matrix for a given angle and axis.

ParameterTypeMeaning
tAngleThe angle to rotate by.
aAxisThe axis to rotate around.
trigconst Trig<> &A trigonometry object to use for sine and cosine calculations.

Returns: Matrix33 — Matrix33 The rotation matrix.

Example

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

// Assume these named values have been initialized with valid data:
// Angle t
// Axis a
// const Trig<> & trig

auto result = psyqo::SoftMath::generateRotationMatrix33(t, a, trig);

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

Declaration 2 of 4

static
Declaration
static inline Matrix33 generateRotationMatrix33(Angle t, Axis a, const Trig<> *trig)

Performs `generate rotation matrix33` as part of the soft math module.

ParameterTypeMeaning
tAngleValue supplied for t. Keep referenced or pointed-to data valid for the complete call.
aAxisValue supplied for a. Keep referenced or pointed-to data valid for the complete call.
trigconst Trig<> *Value supplied for trig. 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:
// Angle t
// Axis a
// const Trig<> * trig

auto result = psyqo::SoftMath::generateRotationMatrix33(t, a, trig);

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

Declaration 3 of 4

static
Declaration
static inline void generateRotationMatrix33(Matrix33 *m, Angle t, Axis a, const Trig<> *trig)

Performs `generate rotation matrix33` as part of the soft math module.

ParameterTypeMeaning
mMatrix33 *Value supplied for m. Keep referenced or pointed-to data valid for the complete call.
tAngleValue supplied for t. Keep referenced or pointed-to data valid for the complete call.
aAxisValue supplied for a. Keep referenced or pointed-to data valid for the complete call.
trigconst Trig<> *Value supplied for trig. 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:
// Matrix33 * m
// Angle t
// Axis a
// const Trig<> * trig

psyqo::SoftMath::generateRotationMatrix33(m, t, a, trig);

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

Declaration 4 of 4

Declaration
void generateRotationMatrix33(Matrix33 *m, Angle t, Axis a, const Trig<> &trig)

Generate a rotation matrix for a given angle and axis.

ParameterTypeMeaning
mMatrix33 *The matrix to store the result in.
tAngleThe angle to rotate by.
aAxisThe axis to rotate around.
trigconst Trig<> &A trigonometry object to use for sine and cosine calculations.

Returns: Nothing (void).

Example

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

// Assume these named values have been initialized with valid data:
// Matrix33 * m
// Angle t
// Axis a
// const Trig<> & trig

psyqo::SoftMath::generateRotationMatrix33(m, t, a, trig);

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

Related members