cgv
Loading...
Searching...
No Matches
cgv::math::arc_length_linear_approximation< T > Class Template Reference

Provide arc length information of a parametric curve using a piecewise linear approximation. More...

#include <parametric_curve.h>

Inheritance diagram for cgv::math::arc_length_linear_approximation< T >:
cgv::math::curve_arc_length< arc_length_linear_approximation< T >, T >

Public Member Functions

template<template< class > class CurveT, cgv::type::uint32_type N>
 arc_length_linear_approximation (const parametric_curve< CurveT< fvec< T, N > > > &curve, int num_samples=128)
 
evaluate (T t) const
 
total_length () const
 
const std::vector< T > & lengths () const
 
- Public Member Functions inherited from cgv::math::curve_arc_length< arc_length_linear_approximation< T >, T >
evaluate (T t) const
 Evaluate the arc length 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>
class cgv::math::arc_length_linear_approximation< T >

Provide arc length information of a parametric curve using a piecewise linear approximation.

Faster than arc_length_bezier_approximation with typically higher memory consumption.

Definition at line 137 of file parametric_curve.h.

Constructor & Destructor Documentation

◆ arc_length_linear_approximation()

template<typename T >
template<template< class > class CurveT, cgv::type::uint32_type N>
cgv::math::arc_length_linear_approximation< T >::arc_length_linear_approximation ( const parametric_curve< CurveT< fvec< T, N > > > &  curve,
int  num_samples = 128 
)
inline

Definition at line 140 of file parametric_curve.h.

Member Function Documentation

◆ evaluate()

template<typename T >
T cgv::math::arc_length_linear_approximation< T >::evaluate ( t) const
inline

Definition at line 158 of file parametric_curve.h.

◆ lengths()

template<typename T >
const std::vector< T > & cgv::math::arc_length_linear_approximation< T >::lengths ( ) const
inline

Definition at line 166 of file parametric_curve.h.

◆ total_length()

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

Definition at line 162 of file parametric_curve.h.


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