CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::MeshGenerator::ParametricPath Class Reference

Path generated by evaluating callback functions at even intervals. More...

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

Classes

class  Edges
 
class  Vertices
 

Public Member Functions

 ParametricPath (Function< PathVertex(double) const > eval, int segments=16) noexcept
 
Edges edges () const noexcept
 
Vertices vertices () const noexcept
 

Private Attributes

Function< PathVertex(double) constmEval
 
int mSegments
 
double mDelta
 

Detailed Description

Path generated by evaluating callback functions at even intervals.

Constructor & Destructor Documentation

◆ ParametricPath()

CeresEngine::MeshGenerator::ParametricPath::ParametricPath ( Function< PathVertex(double) const eval,
int  segments = 16 
)
explicitnoexcept
Parameters
evalA callback that should return a PathVertex for a given value.
segmentsThe number of segments along the path. Should be >= 1. Zero yields an empry path.

Member Function Documentation

◆ edges()

Edges CeresEngine::MeshGenerator::ParametricPath::edges ( ) const
noexcept

◆ vertices()

Vertices CeresEngine::MeshGenerator::ParametricPath::vertices ( ) const
noexcept

Member Data Documentation

◆ mDelta

double CeresEngine::MeshGenerator::ParametricPath::mDelta
private

◆ mEval

Function<PathVertex(double) const> CeresEngine::MeshGenerator::ParametricPath::mEval
private

◆ mSegments

int CeresEngine::MeshGenerator::ParametricPath::mSegments
private

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