#include <_bezier.h>
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_type & | get_r () const |
const time_type & | get_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_type & | operator[] (int i) |
const value_type & | operator[] (int i) const |
Private Attributes | |
affine_combo< value_type, time_type > | affine_func |
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 |
Definition at line 205 of file _bezier.h.
typedef float bezier_base< float, float >::value_type |
typedef float bezier_base< float, float >::time_type |
bezier_base< float, float >::bezier_base | ( | ) | [inline] |
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] |
void bezier_base< float, float >::sync | ( | ) | [inline] |
Definition at line 224 of file _bezier.h.
References bezier_base< V, T >::a, bezier_base< V, T >::b, bezier_base< V, T >::c, and bezier_base< V, T >::d.
value_type bezier_base< float, float >::operator() | ( | time_type | t | ) | const [inline] |
void bezier_base< float, float >::set_rs | ( | time_type | new_r, | |
time_type | new_s | |||
) | [inline] |
Definition at line 238 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 239 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 240 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] |
const time_type& bezier_base< float, float >::get_s | ( | ) | const [inline] |
time_type bezier_base< float, float >::get_dt | ( | ) | const [inline] |
Definition at line 243 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 249 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] |
const value_type& bezier_base< float, float >::operator[] | ( | int | i | ) | const [inline] |
affine_combo<value_type,time_type> bezier_base< float, float >::affine_func [private] |
value_type bezier_base< float, float >::a [private] |
value_type bezier_base< float, float >::b [private] |
value_type bezier_base< float, float >::c [private] |
value_type bezier_base< float, float >::d [private] |
time_type bezier_base< float, float >::r [private] |
time_type bezier_base< float, float >::s [private] |
value_type bezier_base< float, float >::_coeff[4] [private] |
time_type bezier_base< float, float >::drs [private] |