model.ixx File
Model transform helper functions. More...
Included Headers
#include <cmath>
#include <helios.math.types>
Namespaces Index
| namespace | helios |
| namespace | math |
|
Mathematical operations and types. More... | |
| namespace | transform |
|
Transformation utilities for 3D graphics and scene graph inheritance. More... | |
Description
Model transform helper functions.
File Listing
The file content with the documentation metadata removed is:
13namespace helios::math::transform {
15 constexpr mat4f make_rodrigues_rotation_matrix(
18 const vec3f& normalized_axis
28 return mat4f{
50export namespace helios::math {
53 * @brief Creates an affine rotation matrix R' = M * R by "baking" the rotation part into the model matrix.
54 * Any operation R' * v will make sure that v is rotated around the local origin, then transformed into
65 return model * transform::make_rodrigues_rotation_matrix(
66 std::cos(radians),
67 std::sin(radians),
73 * @brief Creates an affine transformation matrix M' = M * T by "baking" the translation part into the model
83 mat4 t = model;
93 * Any operation S' * v will make sure that v is scaled in local space, then transformed into world
101 mat4f t = model;
113 * Any operation S' * v will make sure that v is scaled in local space, then transformed into world
121 mat4f t = model;
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.