#include <ariaUtil.h>
Inheritance diagram for ArLineSegment:
The segment is defined by the coordinates of each endpoint.
Definition at line 942 of file ariaUtil.h.
Public Member Functions | |
ArLineSegment (ArPose pose1, ArPose pose2) | |
Constructor with endpoints as ArPose objects. Only X and Y components of the poses will be used. | |
ArLineSegment (double x1, double y1, double x2, double y2) | |
Constructor with endpoints
Java and Python Wrappers: Not available in Java or Python wrapper libraries. | |
ArLineSegment () | |
const double | getA (void) const |
Gets the A line parameter (see ArLine). | |
const double | getB (void) const |
Gets the B line parameter (see ArLine). | |
const double | getC (void) const |
Gets the C line parameter (see ArLine). | |
double | getDistToLine (const ArPose pose) |
Gets the distance from this line segment to a point. | |
ArPose | getEndPoint1 (void) const |
Get the first endpoint (X1, Y1). | |
ArPose | getEndPoint2 (void) const |
Get the second endpoint of (X2, Y2). | |
const ArLine * | getLine (void) const |
double | getPerpDist (const ArPose pose) |
Calculate the distance from the given point to (its projection on) this line segment. | |
bool | getPerpPoint (const ArPose *pose, ArPose *perpPoint) |
bool | getPerpPoint (ArPose pose, ArPose *perpPoint) |
Determine the intersection point between this line segment, and a perpendicular line passing through the given pose (i.e. projects the given pose onto this line segment.). | |
const double | getX1 (void) const |
Gets the x coordinate of the first endpoint. | |
const double | getX2 (void) const |
Gets the x coordinate of the second endpoint. | |
const double | getY1 (void) const |
Gets the y coordinate of the first endpoint. | |
const double | getY2 (void) const |
Gets the y coordinate of the second endpoint. | |
bool | intersects (ArLineSegment *line, ArPose *pose) |
bool | intersects (const ArLine *line, ArPose *pose) |
Determine where a line intersects this line segment. | |
const bool | linePointIsInSegment (ArPose *pose) const |
Internal function for seeing if a point on our line is within our segment. | |
void | newEndPoints (const ArPose &pt1, const ArPose &pt2) |
Set new end points for this line segment. | |
void | newEndPoints (double x1, double y1, double x2, double y2) |
Set new end points for this line segment. | |
Protected Attributes | |
ArPose | myIntersection |
ArLine | myLine |
ArLine | myPerpLine |
double | myX1 |
double | myX2 |
double | myY1 |
double | myY2 |
|
Java and Python Wrappers: Not available in Java or Python wrapper libraries. Definition at line 947 of file ariaUtil.h. |
|
Gets the distance from this line segment to a point. If the point can be projected onto this line segment (i.e. a perpendicular line can be drawn through the point), then return that distance. Otherwise, return the distance to the closest endpoint.
Definition at line 1055 of file ariaUtil.h. |
|
Calculate the distance from the given point to (its projection on) this line segment.
Definition at line 1039 of file ariaUtil.h. |
|
If there is no intersection, false is returned.
Definition at line 1026 of file ariaUtil.h. |
|
Determine the intersection point between this line segment, and a perpendicular line passing through the given pose (i.e. projects the given pose onto this line segment.). If there is no intersection, false is returned.
Definition at line 1015 of file ariaUtil.h. |
|
Definition at line 993 of file ariaUtil.h. |
|
Determine where a line intersects this line segment.
Definition at line 979 of file ariaUtil.h. |