2D line segment - Float More...
#include <line_segment.h>
Inheritance diagram for uicore::LineSegment2f:Public Member Functions | |
| LineSegment2f () | |
| LineSegment2f (const LineSegment2x< float > ©) | |
| LineSegment2f (const Vec2< float > &point_p, const Vec2< float > &point_q) | |
Public Member Functions inherited from uicore::LineSegment2x< float > | |
| LineSegment2x () | |
| LineSegment2x (const LineSegment2x< float > ©) | |
| LineSegment2x (const Vec2< float > &point_p, const Vec2< float > &point_q) | |
| LineSegment2x< float > & | clip (const Rectx< float > &rect, bool &clipped) |
| Clip this line to a rectangle. More... | |
| bool | collinear (const LineSegment2x< float > &second) const |
| Return true if two line segments are collinear. (All points are on the same line.) More... | |
| Vec2< float > | intersection (const LineSegment2x< float > &second, bool &intersect) const |
| Return the intersection point of two lines. More... | |
| bool | intersects (const LineSegment2x< float > &second, bool collinear_intersect) const |
| Return true if two line segments intersect. More... | |
| Vec2< float > | midpoint () const |
| Get the midpoint of this line. More... | |
| Vec2< float > | normal () const |
| Return the normal vector of the line from point A to point B. More... | |
| bool | operator!= (const LineSegment2x< float > &line) const |
| != operator. More... | |
| LineSegment2x< float > & | operator= (const LineSegment2x< float > ©) |
| = operator. More... | |
| bool | operator== (const LineSegment2x< float > &line) const |
| == operator. More... | |
| float | point_distance (const Vec2< float > &point) |
| Return the distance from a point to a line. More... | |
| float | point_right_of_line (const Vec2< float > &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< float > | |
| Vec2< float > | p |
| Start point on the line. More... | |
| Vec2< float > | q |
2D line segment - Float
A line segment has a start point and an end point
|
inline |
|
inline |
|
inline |