Go to the documentation of this file.
29 #ifndef __CLAW_MATH_CURVE_HPP__
30 #define __CLAW_MATH_CURVE_HPP__
48 template<
typename C,
typename Traits = coordinate_traits<C> >
101 typedef std::list<control_point> control_point_list;
105 typedef typename control_point_list::iterator
iterator;
145 const section& get_section()
const;
146 double get_date()
const;
165 std::vector<resolved_point>
166 get_point_at_x(
value_type x,
bool off_domain =
false )
const;
180 void ensure_ends_in_points
181 ( std::vector<resolved_point>& p,
bool ensure_origin,
182 bool ensure_end )
const;
184 std::vector<resolved_point>
185 extract_domain_points(
const std::vector<resolved_point>& p )
const;
187 std::vector<double> get_roots
191 std::vector<double> get_roots_degree_2
193 std::vector<double> get_roots_degree_3
212 std::vector<typename section::resolved_point>
213 get_point_at_x(
value_type x,
bool off_domain =
false )
const;
221 std::vector<typename section::resolved_point>
222 get_point_at_x_before_origin(
value_type x )
const;
223 std::vector<typename section::resolved_point>
224 get_point_at_x_after_end(
value_type x )
const;
228 control_point_list m_points;
235 #include "claw/impl/curve.tpp"
237 #endif // __CLAW_MATH_CURVE_HPP__
traits_type::value_type value_type
The type of the components of the coordinates.
Implementation of the Bézier curve.
control_point_list::iterator iterator
The type of the iterator on the control points of the curve.
const_iterator iterator_type
The type of the iterators on the ends of the section.
C coordinate_type
The type of the coordinates of the curve.
C coordinate_type
The type of the coordinates of the curve.
C coordinate_type
The type of the coordinates of the curve.
This is the main namespace.
C coordinate_type
The type of the coordinates of the curve.
Traits traits_type
The traits provide an access to the properties of the coordinates.
control_point_list::const_iterator const_iterator
The type of the iterator on the control points of the curve.
The resolved point class is a point found on a section.
Traits traits_type
The traits provide an access to the properties of the coordinates.
A section is a part of the curve between two control points.
The control_point class describes a control point of the curve, with the direction of the curve befor...
traits_type::value_type value_type
The type of the components of the coordinates.
The coordinate traits provide an access to the members of the structures representing a coordinate in...