geirs2Panic
Richard J. Mathar
Fits header keyword batch editor
|
An oriented line section represented by the 2-dimensional coordinates of starting and terminating point. More...
#include <Line2D.h>
Public Member Functions | |
Line2D (const Point2D &strt, const Point2D &fini) | |
Line2D () | |
Point2D | at (double t) const |
Point2D | turn90 () const |
bool | leftFrom (const Point2D &pt) const |
Point2D | intersectInf (const Line2D &oth) const |
Public Attributes | |
Point2D | pts [2] |
The terminal points of start and end. More... | |
An oriented line section represented by the 2-dimensional coordinates of starting and terminating point.
Create a line that connects two given points.
strt | The starting point. |
fini | The terminal point. |
Line2D::Line2D | ( | ) |
Create a line of zero length at the origin.
Point2D Line2D::at | ( | double | t | ) | const |
Determine the point at line parameter t.
t | The line parameter. |
Point2D Line2D::turn90 | ( | ) | const |
Create a vector (i.e, a direction) with an orientation turned 90 degrees ccw.
bool Line2D::leftFrom | ( | const Point2D & | pt | ) | const |
Decide whether a point is to the left or to the right of the line (the line considered of infinite length)
pt | The pivotal point. |
Determine the point of intersection between this infinite line and another infinite line.
oth | The other line (virtually extended both ways to infinity) |
Point2D Line2D::pts[2] |
The terminal points of start and end.