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