30 #ifndef __CLAW_LINE_2D_HPP__
31 #define __CLAW_LINE_2D_HPP__
63 line_2d(
const point_type& _origin,
const direction_type& _direction );
64 line_2d(
const value_type& ox,
const value_type& oy,
65 const value_type& dx,
const value_type& dy );
67 bool parallel(
const self_type& that )
const;
68 bool orthogonal(
const self_type& that )
const;
69 point_type intersection(
const self_type& that )
const;
71 value_type y_value(
const value_type& x )
const;
84 #include <claw/impl/line_2d.tpp>
86 #endif // __CLAW_LINE_2D_HPP__
coordinate_2d< value_type > point_type
The type of the reference point.
Coordinates in a two dimensional space.
A straight line in a two dimensional space.
point_type origin
A reference point on the line.
T value_type
The type of the values we store.
line_2d< value_type > self_type
The type of the current class.
vector_2d< value_type > direction_type
The type of the direction vector.
This is the main namespace.
direction_type direction
Direction.