|
Claw
1.7.3
|
A straight line in a two dimensional space. More...
#include <line_2d.hpp>
Public Types | |
| typedef T | value_type |
| The type of the values we store. | |
| typedef line_2d< value_type > | self_type |
| The type of the current class. | |
| typedef coordinate_2d< value_type > | point_type |
| The type of the reference point. | |
| typedef vector_2d< value_type > | direction_type |
| The type of the direction vector. | |
Public Member Functions | |
| template<class U > | |
| line_2d (const line_2d< U > &that) | |
| line_2d (const point_type &_origin, const direction_type &_direction) | |
| line_2d (const value_type &ox, const value_type &oy, const value_type &dx, const value_type &dy) | |
| bool | parallel (const self_type &that) const |
| bool | orthogonal (const self_type &that) const |
| point_type | intersection (const self_type &that) const |
| value_type | y_value (const value_type &x) const |
Public Attributes | |
| point_type | origin |
| A reference point on the line. | |
| direction_type | direction |
| Direction. | |
A straight line in a two dimensional space.
Definition at line 45 of file line_2d.hpp.
1.8.13