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

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

#include <parametric_curve.h>

Public Member Functions

ParamT evaluate (ParamT t) const
 Evaluate the arc length 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_arc_length< DerivedT, ParamT >

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

Template Parameters
DerivedTThe implemented class type.
ParamTThe parameter type.

Definition at line 15 of file parametric_curve.h.

Member Function Documentation

◆ evaluate()

template<typename DerivedT , typename ParamT >
ParamT cgv::math::curve_arc_length< DerivedT, ParamT >::evaluate ( ParamT  t) const
inline

Evaluate the arc length of the curve.

Parameters
tThe curve parameter.
Returns
The arc length at curve parameter t.

Definition at line 20 of file parametric_curve.h.

◆ total_length()

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

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

Definition at line 25 of file parametric_curve.h.


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