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