2D line segment - Integer More...
#include <line_segment.h>
Inheritance diagram for uicore::LineSegment2:Public Member Functions | |
| LineSegment2 () | |
| LineSegment2 (const LineSegment2x< int > ©) | |
| LineSegment2 (const Vec2< int > &point_p, const Vec2< int > &point_q) | |
Public Member Functions inherited from uicore::LineSegment2x< int > | |
| LineSegment2x () | |
| LineSegment2x (const LineSegment2x< int > ©) | |
| LineSegment2x (const Vec2< int > &point_p, const Vec2< int > &point_q) | |
| LineSegment2x< int > & | clip (const Rectx< int > &rect, bool &clipped) |
| Clip this line to a rectangle. More... | |
| bool | collinear (const LineSegment2x< int > &second) const |
| Return true if two line segments are collinear. (All points are on the same line.) More... | |
| Vec2< int > | intersection (const LineSegment2x< int > &second, bool &intersect) const |
| Return the intersection point of two lines. More... | |
| bool | intersects (const LineSegment2x< int > &second, bool collinear_intersect) const |
| Return true if two line segments intersect. More... | |
| Vec2< int > | midpoint () const |
| Get the midpoint of this line. More... | |
| Vec2< int > | normal () const |
| Return the normal vector of the line from point A to point B. More... | |
| bool | operator!= (const LineSegment2x< int > &line) const |
| != operator. More... | |
| LineSegment2x< int > & | operator= (const LineSegment2x< int > ©) |
| = operator. More... | |
| bool | operator== (const LineSegment2x< int > &line) const |
| == operator. More... | |
| int | point_distance (const Vec2< int > &point) |
| Return the distance from a point to a line. More... | |
| int | point_right_of_line (const Vec2< int > &point) const |
| Return [<0, 0, >0] if the Point P is right, on or left of the line trough A,B. More... | |
Additional Inherited Members | |
Public Attributes inherited from uicore::LineSegment2x< int > | |
| Vec2< int > | p |
| Start point on the line. More... | |
| Vec2< int > | q |
2D line segment - Integer
A line segment has a start point and an end point
|
inline |
|
inline |
|
inline |