#include <line.h>
Public Member Functions | |
| CL_Line2x () | |
| CL_Line2x (const CL_Line2x< Type > ©) | |
| CL_Line2x (const CL_Vec2< Type > &point_p, const CL_Vec2< Type > &point_q) | |
| CL_Line2x (const CL_Vec2< Type > &point_p, Type gradient) | |
Attributes | |
| CL_Vec2< Type > | get_intersection (const CL_Line2x< Type > &second, bool &intersect) const |
| Return the intersection of this and other line. | |
| Type | point_right_of_line (CL_Vec2< Type > point) const |
| Return [<0, 0, >0] if the Point P is right, on or left of the line trough A,B. | |
Operators | |
| CL_Line2x< Type > & | operator= (const CL_Line2x< Type > ©) |
| = operator. | |
| bool | operator== (const CL_Line2x< Type > &line) const |
| == operator. | |
| bool | operator!= (const CL_Line2x< Type > &line) const |
| != operator. | |
Public Attributes | |
| CL_Vec2< Type > | p |
| First point on the line. | |
| CL_Vec2< Type > | q |
These line templates are defined for: int (CL_Line2i), float (CL_Line2f), double (CL_Line2d)
|
|||||||||
|
|
|
||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
Return the intersection of this and other line.
|
|
||||||||||
|
!= operator.
|
|
||||||||||
|
= operator.
|
|
||||||||||
|
== operator.
|
|
||||||||||
|
Return [<0, 0, >0] if the Point P is right, on or left of the line trough A,B.
|
|
|||||
|
First point on the line.
|
|
|||||
|
|
1.4.6