2D line More...
#include <line.h>
| Public Member Functions | |
| Line2x () | |
| Line2x (const Line2x< Type > ©) | |
| Line2x (const Vec2< Type > &point_p, const Vec2< Type > &point_q) | |
| Line2x (const Vec2< Type > &point_p, Type gradient) | |
| Vec2< Type > | get_intersection (const Line2x< Type > &second, bool &intersect) const | 
| Return the intersection of this and other line. | |
| bool | operator!= (const Line2x< Type > &line) const | 
| != operator. | |
| Line2x< Type > & | operator= (const Line2x< Type > ©) | 
| = operator. | |
| bool | operator== (const Line2x< Type > &line) const | 
| == operator. | |
| Type | point_right_of_line (Vec2< Type > point) const | 
| Return [<0, 0, >0] if the Point P is right, on or left of the line trough A,B. | |
| Public Attributes | |
| Vec2< Type > | p | 
| First point on the line. | |
| Vec2< Type > | q | 
2D line
These line templates are defined for: int (Line2i), float (Line2f), double (Line2d)
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| Vec2< Type > clan::Line2x< Type >::get_intersection | ( | const Line2x< Type > & | second, | 
| bool & | intersect ) const | 
Return the intersection of this and other line.
| second | = The second line to use | 
| intersect | = On Return: true if the lines intersect, false if the lines are parallel | 
| 
 | inline | 
!= operator.
References clan::line, clan::Line2x< Type >::p, and clan::Line2x< Type >::q.
| 
 | inline | 
= operator.
References clan::Line2x< Type >::p, and clan::Line2x< Type >::q.
| 
 | inline | 
== operator.
References clan::line, clan::Line2x< Type >::p, and clan::Line2x< Type >::q.
| 
 | inline | 
Return [<0, 0, >0] if the Point P is right, on or left of the line trough A,B.
| point | = The point | 
References clan::Line2x< Type >::p, clan::point, and clan::Line2x< Type >::q.
| Vec2<Type> clan::Line2x< Type >::p | 
First point on the line.
Referenced by clan::Line2x< Type >::operator!=(), clan::Line2x< Type >::operator=(), clan::Line2x< Type >::operator==(), and clan::Line2x< Type >::point_right_of_line().
| Vec2<Type> clan::Line2x< Type >::q |