Epok Engine

EPOK RUNTIME

epok::Affine::rotate_rows

Method · 1 overload

Method

Rotate all basis columns with one already-resolved sine/cosine pair.

Belongs to
epok::Affine
Header
affine.hpp
Overloads
1

Declaration

Declaration
void rotate_rows(int axis,Number sine,Number cosine,int columns=3)

Rotate all basis columns with one already-resolved sine/cosine pair.

ParameterTypeMeaning
axisintValue supplied for axis. Keep referenced or pointed-to data valid for the complete call.
sineNumberValue supplied for sine. Keep referenced or pointed-to data valid for the complete call.
cosineNumberValue supplied for cosine. Keep referenced or pointed-to data valid for the complete call.
columnsintValue supplied for columns. Keep referenced or pointed-to data valid for the complete call.

Returns: Nothing (void).

Example

C++ example
#include "affine.hpp"

// Assume these named values have been initialized with valid data:
// int axis
// Number sine
// Number cosine
// int columns

epok::Affine& object = /* obtain a valid instance */;

object.rotate_rows(axis, sine, cosine, columns);

Why use it

It provides direct, allocation-conscious access to fixed-point affine transforms and matrix composition. No exception-based error path is implied by the signature.

Trade-offs and warnings

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in runtime/affine.hpp:15

Related members