2D line - Integer More...
#include <line.h>
Public Member Functions | |
Line2 () | |
Line2 (const Line2x< int > ©) | |
Line2 (const Vec2< int > &point_p, const Vec2< int > &point_q) | |
Line2 (const Vec2< int > &point_p, int gradient) | |
Attributes | |
Vec2< int > | get_intersection (const Line2x< int > &second, bool &intersect) const |
Return the intersection of this and other line. More... | |
int | point_right_of_line (Vec2< int > point) const |
Return [<0, 0, >0] if the Point P is right, on or left of the line trough A,B. More... | |
Operators | |
bool | operator== (const Line2x< int > &line) const |
== operator. More... | |
bool | operator!= (const Line2x< int > &line) const |
!= operator. More... | |
Public Attributes | |
Vec2< int > | p |
First point on the line. More... | |
Vec2< int > | q |
2D line - Integer
|
inherited |
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 |
|
inlineinherited |
!= operator.
References clan::Line2x< Type >::p, and clan::Line2x< Type >::q.
|
inlineinherited |
== operator.
References clan::Line2x< Type >::p, and clan::Line2x< Type >::q.
|
inlineinherited |
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::Line2x< Type >::q, clan::Vec2< Type >::x, and clan::Vec2< Type >::y.
|
inherited |
First point on the line.
|
inherited |