CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::MeshGenerator::RotateMesh< Mesh > Class Template Reference

Rotates vertices and normals. More...

#include <CeresEngine/Mesh/Generator/RotateMesh.hpp>

Public Types

using Triangles = typename Impl::Triangles
 
using Vertices = typename Impl::Vertices
 

Public Member Functions

 RotateMesh (Mesh mesh, const Quaternion &rotation)
 
 RotateMesh (Mesh mesh, const double angle, const Vector3 &axis)
 
 RotateMesh (Mesh mesh, const double angle, const Axis axis)
 
Triangles triangles () const noexcept
 
Vertices vertices () const noexcept
 

Private Types

using Impl = TransformMesh< Mesh >
 

Private Attributes

Impl mTransformMesh
 

Detailed Description

template<typename Mesh>
class CeresEngine::MeshGenerator::RotateMesh< Mesh >

Rotates vertices and normals.

Member Typedef Documentation

◆ Impl

◆ Triangles

◆ Vertices

Constructor & Destructor Documentation

◆ RotateMesh() [1/3]

template<typename Mesh >
CeresEngine::MeshGenerator::RotateMesh< Mesh >::RotateMesh ( Mesh  mesh,
const Quaternion &  rotation 
)
inline
Parameters
meshSource mesh data.
rotationQuaternion presenting the rotation.

◆ RotateMesh() [2/3]

template<typename Mesh >
CeresEngine::MeshGenerator::RotateMesh< Mesh >::RotateMesh ( Mesh  mesh,
const double  angle,
const Vector3 axis 
)
inline
Parameters
meshSource mesh data.
angleCounterclockwise angle around the given axis.
axisUnit length axis to rotate around.

◆ RotateMesh() [3/3]

template<typename Mesh >
CeresEngine::MeshGenerator::RotateMesh< Mesh >::RotateMesh ( Mesh  mesh,
const double  angle,
const Axis  axis 
)
inline

Member Function Documentation

◆ triangles()

template<typename Mesh >
Triangles CeresEngine::MeshGenerator::RotateMesh< Mesh >::triangles ( ) const
inlinenoexcept

◆ vertices()

template<typename Mesh >
Vertices CeresEngine::MeshGenerator::RotateMesh< Mesh >::vertices ( ) const
inlinenoexcept

Member Data Documentation

◆ mTransformMesh

template<typename Mesh >
Impl CeresEngine::MeshGenerator::RotateMesh< Mesh >::mTransformMesh
private

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