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