ETL  0.04.19
Public Types | Public Member Functions | Private Attributes | List of all members
bezier_base< float, float > Class Template Reference

#include <_bezier.h>

Inheritance diagram for bezier_base< float, float >:
unary_function

Public Types

typedef float value_type
typedef float time_type

Public Member Functions

 bezier_base ()
 bezier_base (const value_type &a, const value_type &b, const value_type &c, const value_type &d, const time_type &r=0.0, const time_type &s=1.0)
void sync ()
value_type operator() (time_type t) const
void set_rs (time_type new_r, time_type new_s)
void set_r (time_type new_r)
void set_s (time_type new_s)
const time_typeget_r () const
const time_typeget_s () const
time_type get_dt () const
time_type intersect (const bezier_base< value_type, time_type > &x, time_type t=0.0, int i=15) const
 Bezier curve intersection function.
value_typeoperator[] (int i)
const value_typeoperator[] (int i) const

Private Attributes

value_type a
value_type b
value_type c
value_type d
time_type r
time_type s
value_type _coeff [4]
time_type drs

Detailed Description

template<>
class bezier_base< float, float >

Definition at line 227 of file _bezier.h.

Member Typedef Documentation

typedef float bezier_base< float, float >::value_type

Definition at line 230 of file _bezier.h.

typedef float bezier_base< float, float >::time_type

Definition at line 231 of file _bezier.h.

Constructor & Destructor Documentation

bezier_base< float, float >::bezier_base ( )
inline

Definition at line 240 of file _bezier.h.

bezier_base< float, float >::bezier_base ( const value_type a,
const value_type b,
const value_type c,
const value_type d,
const time_type r = 0.0,
const time_type s = 1.0 
)
inline

Definition at line 241 of file _bezier.h.

References bezier_base< V, T >::sync().

Member Function Documentation

void bezier_base< float, float >::sync ( )
inline
value_type bezier_base< float, float >::operator() ( time_type  t) const
inline

Definition at line 257 of file _bezier.h.

References bezier_base< V, T >::r.

void bezier_base< float, float >::set_rs ( time_type  new_r,
time_type  new_s 
)
inline

Definition at line 260 of file _bezier.h.

References bezier_base< V, T >::r, and bezier_base< V, T >::s.

void bezier_base< float, float >::set_r ( time_type  new_r)
inline

Definition at line 261 of file _bezier.h.

References bezier_base< V, T >::r, and bezier_base< V, T >::s.

void bezier_base< float, float >::set_s ( time_type  new_s)
inline

Definition at line 262 of file _bezier.h.

References bezier_base< V, T >::r, and bezier_base< V, T >::s.

const time_type& bezier_base< float, float >::get_r ( ) const
inline

Definition at line 263 of file _bezier.h.

References bezier_base< V, T >::r.

const time_type& bezier_base< float, float >::get_s ( ) const
inline

Definition at line 264 of file _bezier.h.

References bezier_base< V, T >::s.

time_type bezier_base< float, float >::get_dt ( ) const
inline

Definition at line 265 of file _bezier.h.

References bezier_base< V, T >::r, and bezier_base< V, T >::s.

time_type bezier_base< float, float >::intersect ( const bezier_base< value_type, time_type > &  x,
time_type  t = 0.0,
int  i = 15 
) const
inline

Bezier curve intersection function.

Calculates the time of intersection for the calling curve.

Definition at line 271 of file _bezier.h.

References bezier_base< V, T >::r, and bezier_base< V, T >::s.

value_type& bezier_base< float, float >::operator[] ( int  i)
inline

Definition at line 296 of file _bezier.h.

References bezier_base< V, T >::a.

const value_type& bezier_base< float, float >::operator[] ( int  i) const
inline

Definition at line 300 of file _bezier.h.

References bezier_base< V, T >::a.

Member Data Documentation

value_type bezier_base< float, float >::a
private

Definition at line 234 of file _bezier.h.

value_type bezier_base< float, float >::b
private

Definition at line 234 of file _bezier.h.

value_type bezier_base< float, float >::c
private

Definition at line 234 of file _bezier.h.

value_type bezier_base< float, float >::d
private

Definition at line 234 of file _bezier.h.

time_type bezier_base< float, float >::r
private

Definition at line 235 of file _bezier.h.

time_type bezier_base< float, float >::s
private

Definition at line 235 of file _bezier.h.

value_type bezier_base< float, float >::_coeff[4]
private

Definition at line 237 of file _bezier.h.

time_type bezier_base< float, float >::drs
private

Definition at line 238 of file _bezier.h.


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