Claw
1.7.3
|
A section is a part of the curve between two control points. More...
#include <curve.hpp>
Classes | |
class | resolved_point |
The resolved point class is a point found on a section. More... |
Public Types | |
typedef C | coordinate_type |
The type of the coordinates of the curve. | |
typedef Traits | traits_type |
The traits provide an access to the properties of the coordinates. | |
typedef traits_type::value_type | value_type |
The type of the components of the coordinates. | |
typedef const_iterator | iterator_type |
The type of the iterators on the ends of the section. |
Public Member Functions | |
section (const iterator_type &origin, const iterator_type &end) | |
Constructor. | |
coordinate_type | get_point_at (double t) const |
Get the point of this section at a given date. | |
coordinate_type | get_tangent_at (double t) const |
Get the direction of the tangent at a given date. | |
std::vector< resolved_point > | get_point_at_x (value_type x, bool off_domain=false) const |
Get the points having the given x-coordinate on this section. | |
const iterator_type & | get_origin () const |
Get an iterator on the control point at the origin of the section in the curve from which it was created. | |
bool | empty () const |
Tell if there is no points on this section. |
A section is a part of the curve between two control points.
claw::math::curve< C, Traits >::section::section | ( | const iterator_type & | origin, |
const iterator_type & | end | ||
) |
claw::math::curve< C, Traits >::section::coordinate_type claw::math::curve< C, Traits >::section::get_point_at | ( | double | t | ) | const |
std::vector< typename claw::math::curve< C, Traits >::section::resolved_point > claw::math::curve< C, Traits >::section::get_point_at_x | ( | value_type | x, |
bool | off_domain = false |
||
) | const |
Get the points having the given x-coordinate on this section.
x | The coordinate for which we want the points. |
off_domain | Tell the method to keep the points found at a date outside [0, 1]. |
Definition at line 247 of file curve.tpp.
Referenced by claw::math::curve< C, Traits >::get_point_at_x().
claw::math::curve< C, Traits >::section::coordinate_type claw::math::curve< C, Traits >::section::get_tangent_at | ( | double | t | ) | const |