cgv
Loading...
Searching...
No Matches
cgv::math::curve_parameterization< DerivedT, ParamT > Struct Template Reference

CRTP base class that provides arc length parameterization information for a parametric_curve. More...

#include <parametric_curve.h>

Public Member Functions

ParamT evaluate (ParamT d) const
 Evaluate the arc length parameterization of the curve.
 
ParamT total_length () const
 Return the arc length of the complete curve for t from 0 to 1.
 

Detailed Description

template<typename DerivedT, typename ParamT>
struct cgv::math::curve_parameterization< DerivedT, ParamT >

CRTP base class that provides arc length parameterization information for a parametric_curve.

Template Parameters
DerivedTThe implemented class type.
ParamTThe parameter type.

Definition at line 34 of file parametric_curve.h.

Member Function Documentation

◆ evaluate()

template<typename DerivedT , typename ParamT >
ParamT cgv::math::curve_parameterization< DerivedT, ParamT >::evaluate ( ParamT  d) const
inline

Evaluate the arc length parameterization of the curve.

Parameters
dThe arc length.
Returns
The curve parameter where the curve has an arc length of d.

Definition at line 39 of file parametric_curve.h.

◆ total_length()

template<typename DerivedT , typename ParamT >
ParamT cgv::math::curve_parameterization< DerivedT, ParamT >::total_length ( ) const
inline

Return the arc length of the complete curve for t from 0 to 1.

Definition at line 44 of file parametric_curve.h.


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