Unravel Engine C++ Reference
Loading...
Searching...
No Matches
generator::parametric_path_t Class Reference

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

#include <parametric_path.hpp>

Classes

class  edges_t
 
class  vertices_t
 

Public Member Functions

 parametric_path_t (const std::function< path_vertex_t(double)> &eval, int segments=16) noexcept
 
edges_t edges () const noexcept
 
vertices_t vertices () const noexcept
 

Detailed Description

Path generated by evaluating callback functions at even intervals.

Definition at line 13 of file parametric_path.hpp.

Constructor & Destructor Documentation

◆ parametric_path_t()

parametric_path_t::parametric_path_t ( const std::function< path_vertex_t(double)> & 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.

Definition at line 54 of file parametric_path.cpp.

Member Function Documentation

◆ edges()

parametric_path_t::edges_t parametric_path_t::edges ( ) const
noexcept

Definition at line 61 of file parametric_path.cpp.

◆ vertices()

parametric_path_t::vertices_t parametric_path_t::vertices ( ) const
noexcept

Definition at line 66 of file parametric_path.cpp.


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