Unravel Engine C++ Reference
Loading...
Searching...
No Matches
generator::rotate_mesh_t< mesh_t > Class Template Reference

Rotates vertices and normals. More...

#include <rotate_mesh.hpp>

Public Types

using triangles_t = typename impl_t::triangles_t
 
using vertices_t = typename impl_t::vertices_t
 

Public Member Functions

 rotate_mesh_t (mesh_t mesh, const gml::dquat &rotation)
 
 rotate_mesh_t (mesh_t mesh, double angle, const gml::dvec3 &axis)
 
 rotate_mesh_t (mesh_t mesh, double angle, axis_t axis)
 
triangles_t triangles () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

template<typename mesh_t>
class generator::rotate_mesh_t< mesh_t >

Rotates vertices and normals.

Definition at line 12 of file rotate_mesh.hpp.

Member Typedef Documentation

◆ triangles_t

template<typename mesh_t >
using generator::rotate_mesh_t< mesh_t >::triangles_t = typename impl_t::triangles_t

Definition at line 48 of file rotate_mesh.hpp.

◆ vertices_t

template<typename mesh_t >
using generator::rotate_mesh_t< mesh_t >::vertices_t = typename impl_t::vertices_t

Definition at line 55 of file rotate_mesh.hpp.

Constructor & Destructor Documentation

◆ rotate_mesh_t() [1/3]

template<typename mesh_t >
generator::rotate_mesh_t< mesh_t >::rotate_mesh_t ( mesh_t mesh,
const gml::dquat & rotation )
inline
Parameters
meshSource mesh data.
rotationQuaternion presenting the rotation.

Definition at line 21 of file rotate_mesh.hpp.

◆ rotate_mesh_t() [2/3]

template<typename mesh_t >
generator::rotate_mesh_t< mesh_t >::rotate_mesh_t ( mesh_t mesh,
double angle,
const gml::dvec3 & axis )
inline
Parameters
meshSource mesh data.
angleCounterclockwise angle around the given axis.
axisUnit length axis to rotate around.

Definition at line 34 of file rotate_mesh.hpp.

◆ rotate_mesh_t() [3/3]

template<typename mesh_t >
generator::rotate_mesh_t< mesh_t >::rotate_mesh_t ( mesh_t mesh,
double angle,
axis_t axis )
inline

Definition at line 39 of file rotate_mesh.hpp.

Member Function Documentation

◆ triangles()

template<typename mesh_t >
triangles_t generator::rotate_mesh_t< mesh_t >::triangles ( ) const
inlinenoexcept

Definition at line 50 of file rotate_mesh.hpp.

◆ vertices()

template<typename mesh_t >
vertices_t generator::rotate_mesh_t< mesh_t >::vertices ( ) const
inlinenoexcept

Definition at line 57 of file rotate_mesh.hpp.


The documentation for this class was generated from the following file: