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

Translates the position of each vertex by given amount. More...

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

Public Types

using Edges = typename Impl::Edges
 
using Vertices = typename Impl::Vertices
 

Public Member Functions

 TranslateShape (Shape shape, const Vector2 &delta)
 
Edges edges () const noexcept
 
Vertices vertices () const noexcept
 

Private Types

using Impl = TransformShape< Shape >
 

Private Attributes

Impl mTransformShape
 

Detailed Description

template<typename Shape>
class CeresEngine::MeshGenerator::TranslateShape< Shape >

Translates the position of each vertex by given amount.

Member Typedef Documentation

◆ Edges

◆ Impl

◆ Vertices

Constructor & Destructor Documentation

◆ TranslateShape()

template<typename Shape >
CeresEngine::MeshGenerator::TranslateShape< Shape >::TranslateShape ( Shape  shape,
const Vector2 delta 
)
inline
Parameters
shapeSource data shape.
deltaAmount to increment vertex positions.

Member Function Documentation

◆ edges()

template<typename Shape >
Edges CeresEngine::MeshGenerator::TranslateShape< Shape >::edges ( ) const
inlinenoexcept

◆ vertices()

template<typename Shape >
Vertices CeresEngine::MeshGenerator::TranslateShape< Shape >::vertices ( ) const
inlinenoexcept

Member Data Documentation

◆ mTransformShape

template<typename Shape >
Impl CeresEngine::MeshGenerator::TranslateShape< Shape >::mTransformShape
private

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