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

A bezier curve with D control points. More...

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

Classes

struct  ArrayWrapper
 

Public Types

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

Public Member Functions

 BezierShape (const Vector2(&p)[D], int segments=16)
 
Edges edges () const noexcept
 
Vertices vertices () const noexcept
 

Private Types

using Impl = ParametricShape
 

Private Member Functions

 BezierShape (const ArrayWrapper &p, int segments)
 

Private Attributes

Impl mParametricShape
 

Detailed Description

template<int D>
class CeresEngine::MeshGenerator::BezierShape< D >

A bezier curve with D control points.

Template Parameters
DNumber of control points. 4 = cubic curve. Must be > 1.

Member Typedef Documentation

◆ Edges

◆ Impl

◆ Vertices

Constructor & Destructor Documentation

◆ BezierShape() [1/2]

template<int D>
CeresEngine::MeshGenerator::BezierShape< D >::BezierShape ( const ArrayWrapper p,
int  segments 
)
inlineexplicitprivate

◆ BezierShape() [2/2]

template<int D>
CeresEngine::MeshGenerator::BezierShape< D >::BezierShape ( const Vector2(&)  p[D],
int  segments = 16 
)
inlineexplicit
Parameters
pControl points
segmentsNumber of subdivisions

Member Function Documentation

◆ edges()

template<int D>
Edges CeresEngine::MeshGenerator::BezierShape< D >::edges ( ) const
inlinenoexcept

◆ vertices()

template<int D>
Vertices CeresEngine::MeshGenerator::BezierShape< D >::vertices ( ) const
inlinenoexcept

Member Data Documentation

◆ mParametricShape

template<int D>
Impl CeresEngine::MeshGenerator::BezierShape< D >::mParametricShape
private

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