2D line - Integer More...
#include <line.h>

Public Member Functions | |
| CL_Line2 () | |
| CL_Line2 (const CL_Vec2< int > &point_p, int gradient) | |
| CL_Line2 (const CL_Vec2< int > &point_p, const CL_Vec2< int > &point_q) | |
| CL_Line2 (const CL_Line2x< int > ©) | |
Attributes | |
| CL_Vec2< int > | get_intersection (const CL_Line2x< int > &second, bool &intersect) const |
| Return the intersection of this and other line. | |
| 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. | |
Operators | |
| bool | operator== (const CL_Line2x< int > &line) const |
| == operator. | |
| bool | operator!= (const CL_Line2x< int > &line) const |
| != operator. | |
Public Attributes | |
| CL_Vec2< int > | p |
| First point on the line. | |
| CL_Vec2< int > | q |
2D line - Integer
| CL_Line2::CL_Line2 | ( | ) | [inline] |
| CL_Line2::CL_Line2 | ( | const CL_Line2x< int > & | copy | ) | [inline] |
| CL_Line2::CL_Line2 | ( | const CL_Vec2< int > & | point_p, | |
| int | gradient | |||
| ) | [inline] |
| CL_Vec2<int > CL_Line2x< int >::get_intersection | ( | const CL_Line2x< int > & | 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.
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.
1.7.1