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

A shape with values evaluated using a callback function. More...

#include <parametric_shape.hpp>

Classes

class  edges_t
 
class  vertices_t
 

Public Member Functions

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

Detailed Description

A shape with values evaluated using a callback function.

Definition at line 13 of file parametric_shape.hpp.

Constructor & Destructor Documentation

◆ parametric_shape_t()

parametric_shape_t::parametric_shape_t ( const std::function< shape_vertex_t(double)> & eval,
int segments = 16 )
explicitnoexcept
Parameters
evalA callback that returns a ShapeVertex for a given value.
segmentsThe number of segments along the shape. Should be >= 1. Zero yields an empty shape.

Definition at line 55 of file parametric_shape.cpp.

Member Function Documentation

◆ edges()

parametric_shape_t::edges_t parametric_shape_t::edges ( ) const
noexcept

Definition at line 62 of file parametric_shape.cpp.

◆ vertices()

parametric_shape_t::vertices_t parametric_shape_t::vertices ( ) const
noexcept

Definition at line 67 of file parametric_shape.cpp.


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