Claw  1.7.3
Public Types | Public Member Functions | List of all members
claw::math::curve< C, Traits >::control_point Class Reference

The control_point class describes a control point of the curve, with the direction of the curve before and after the point. More...

#include <curve.hpp>

Public Types

typedef C coordinate_type
 The type of the coordinates of the curve.

Public Member Functions

 control_point ()
 Constructor.
 control_point (const coordinate_type &p)
 Constructor.
 control_point (const coordinate_type &p, const coordinate_type &input_direction, const coordinate_type &output_direction)
 Constructor.
const coordinate_typeget_position () const
 Get the position of this control point.
const coordinate_typeget_input_direction () const
 Get the point in the direction of which the curve enters this position.
const coordinate_typeget_output_direction () const
 Get the point in the direction of which the curve leaves this position.

Detailed Description

template<typename C, typename Traits = coordinate_traits<C>>
class claw::math::curve< C, Traits >::control_point

The control_point class describes a control point of the curve, with the direction of the curve before and after the point.

Author
Julien Jorge

Definition at line 67 of file curve.hpp.

Constructor & Destructor Documentation

template<typename C , typename Traits >
claw::math::curve< C, Traits >::control_point::control_point ( const coordinate_type p)
explicit

Constructor.

Parameters
pThe position of this control point. It will be assigned to the input and output directions too.

Definition at line 50 of file curve.tpp.

template<typename C , typename Traits >
claw::math::curve< C, Traits >::control_point::control_point ( const coordinate_type p,
const coordinate_type input_direction,
const coordinate_type output_direction 
)

Constructor.

Parameters
pThe position of this control point.
input_directionThe point in the direction of which the curve enters p.
output_directionThe point in the direction of which the curve leaves p.

Definition at line 67 of file curve.tpp.


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