![]() |
NimbRo ROS Soccer Package
|
A class representing line segments. More...
#include <LineSegment.hpp>
Public Member Functions | |
bool | SortbyDistance (const Point2f &a, const Point2f &b) |
bool | IsOnThis (const Point2f &ptTest, float flEp=DEFFLEQEPSILON) |
LineSegment (const Point2d p1, const Point2d p2, double _probability=0.0) | |
LineSegment (const Point2d center, double angle, double length, double _probability=0.0) | |
LineSegment (const LineSegment &l) | |
void | setProbability (double _in) |
double | getProbability () const |
double | GetLength () const |
void | Clip (Rect boundry) |
void | GetDirection (Point2d &res) const |
float | GetYByX (float x) const |
int | GetSide (const Point2d point) const |
double | GetExteriorAngleDegree (const LineSegment otherLine) const |
double | GetAbsMinAngleDegree (const LineSegment otherLine) const |
Point2f | GetClosestPointOnLineSegment (Point2f p) |
Point2f | GetMiddle () |
float | DistanceFromLine (Point2f p) |
bool | Intersect (LineSegment L, Point2d &res) |
bool | IntersectLineForm (LineSegment L, Point2d &res) |
LineSegment | PerpendicularLineSegment (double scale=1) |
LineSegment | PerpendicularLineSegment (double len, cv::Point2d mid) |
bool | GetSlope (double &slope) |
double | GetRadianFromX () |
double | GetDegreeFromX () |
LineSegment | scale (double _in) |
vector< LineSegment > | GetMidLineSegments (int count) |
vector< Point2d > | GetMidPoints (int count, bool sortthis=true) |
Public Attributes | |
Point2d | P1 |
Point2d | P2 |
A class representing line segments.