Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::util::Bezier Struct Reference

Static Public Member Functions

template<BezierCurveType Type, CurveValueConcept T>
static T evaluateCurve (std::span< const T > P, const float t)
 Evaluate a point on a Bezier curve using De Casteljau's Algorithm.
 
template<BezierCurveType Type, CurveValueConcept T>
static T evaluateDerivativeCurve (std::span< const T > P, const float t)
 Evaluate a derivated Bezier curve.
 

Member Function Documentation

◆ evaluateCurve()

template<BezierCurveType Type, CurveValueConcept T>
static T oe::util::Bezier::evaluateCurve ( std::span< const T >  P,
const float  t 
)
inlinestatic

Evaluate a point on a Bezier curve using De Casteljau's Algorithm.

Does not use any loops

Parameters
PControl points
tPosition on the curve between 0.0 (first control point) and 1.0 (last control point)

◆ evaluateDerivativeCurve()

template<BezierCurveType Type, CurveValueConcept T>
static T oe::util::Bezier::evaluateDerivativeCurve ( std::span< const T >  P,
const float  t 
)
inlinestatic

Evaluate a derivated Bezier curve.

Used to compute normals or surfaces

Parameters
PControl points
tPosition on the curve between 0.0 (first control point) and 1.0 (last control point)

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