cgv
Loading...
Searching...
No Matches
cgv::math::arc_length_parameterization_bezier_approximation< T > Struct Template Reference

Provide arc length parameterization of a parametric curve using binary search on a bezier approximation of the arc length. More...

#include <parametric_curve.h>

Inheritance diagram for cgv::math::arc_length_parameterization_bezier_approximation< T >:
cgv::math::curve_parameterization< arc_length_parameterization_bezier_approximation< T >, T >

Public Member Functions

 arc_length_parameterization_bezier_approximation (const arc_length_bezier_approximation< T > &arc_length, int depth=8)
 
evaluate (T d) const
 
total_length () const
 
- Public Member Functions inherited from cgv::math::curve_parameterization< arc_length_parameterization_bezier_approximation< T >, T >
evaluate (T d) const
 Evaluate the arc length parameterization of the curve.
 
total_length () const
 Return the arc length of the complete curve for t from 0 to 1.
 

Detailed Description

template<typename T>
struct cgv::math::arc_length_parameterization_bezier_approximation< T >

Provide arc length parameterization of a parametric curve using binary search on a bezier approximation of the arc length.

Potentially less accurate and slower than linear approximations but with lower memory consumption.

Definition at line 336 of file parametric_curve.h.

Constructor & Destructor Documentation

◆ arc_length_parameterization_bezier_approximation()

template<typename T >
cgv::math::arc_length_parameterization_bezier_approximation< T >::arc_length_parameterization_bezier_approximation ( const arc_length_bezier_approximation< T > &  arc_length,
int  depth = 8 
)
inline

Definition at line 338 of file parametric_curve.h.

Member Function Documentation

◆ evaluate()

template<typename T >
T cgv::math::arc_length_parameterization_bezier_approximation< T >::evaluate ( d) const
inline

Definition at line 340 of file parametric_curve.h.

◆ total_length()

template<typename T >
T cgv::math::arc_length_parameterization_bezier_approximation< T >::total_length ( ) const
inline

Definition at line 361 of file parametric_curve.h.


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