Epok Engine

PSYQO SDK

psyqo::SoftMath::generateRotationMatrix33

Function · 4 overloads

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

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 sketch

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);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/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
tAngleNot documented; consult the linked header.
aAxisNot documented; consult the linked header.
trigconst Trig<> *Not documented; consult the linked header.

Returns: Matrix33. Consult the linked header for its meaning.

Example sketch

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);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/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 *Not documented; consult the linked header.
tAngleNot documented; consult the linked header.
aAxisNot documented; consult the linked header.
trigconst Trig<> *Not documented; consult the linked header.

Returns: Nothing (void).

Example sketch

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);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/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 sketch

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);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/soft-math.hh:46

Related members