30 #ifndef __CLAW_LINE_2D_HPP__
31 #define __CLAW_LINE_2D_HPP__
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.
bool parallel(const self_type &that) const
Tell if two lines are parallels.
Implementation of claw::math::line_2d class.
bool orthogonal(const self_type &that) const
Tell if two lines are orthogonal.
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.
value_type y_value(const value_type &x) const
Get the y value of the point of the line at position x.
direction_type direction
Direction.
point_type intersection(const self_type &that) const
Get the point at the intersection of two lines.