#include <PolyLine2D.hpp>
|
| PolyLine2D (const VectorDouble &x=VectorDouble(), const VectorDouble &y=VectorDouble()) |
|
| PolyLine2D (const PolyLine2D &m) |
|
PolyLine2D & | operator= (const PolyLine2D &m) |
|
virtual | ~PolyLine2D () |
|
virtual String | toString (const AStringFormat *strfmt=nullptr) const override |
| Interface of AStringable. More...
|
|
int | getNPoints () const |
|
void | init (const VectorDouble &x, const VectorDouble &y) |
|
const VectorDouble & | getX () const |
|
const VectorDouble & | getY () const |
|
double | getX (int i) const |
|
double | getY (int i) const |
|
VectorDouble | getPoint (int i) const |
|
double | getXmin () const |
|
double | getYmin () const |
|
double | getXmax () const |
|
double | getYmax () const |
|
void | addPoint (double x, double y) |
|
void | setX (const VectorDouble &x) |
|
void | setY (const VectorDouble &y) |
|
PolyPoint2D | getPLIndex (const VectorDouble &xy0) const |
|
double | distanceBetweenPoints (double ap, double al, const VectorDouble &xy1, const VectorDouble &xy2) const |
|
double | distanceAlongPolyline (const PolyPoint2D &pldist1, const PolyPoint2D &pldist2) const |
|
double | angleAtPolyline (const PolyPoint2D &pldist, int nb_neigh=0) const |
|
double | distanceAtPolyline (const PolyPoint2D &pldist, const VectorDouble &target, int nb_neigh) const |
|
| AStringable () |
|
| AStringable (const AStringable &r) |
|
AStringable & | operator= (const AStringable &r) |
|
virtual | ~AStringable () |
|
virtual void | display (const AStringFormat *strfmt=nullptr) const final |
|
virtual void | display (int level) const final |
|
| ASerializable () |
|
| ASerializable (const ASerializable &r) |
|
ASerializable & | operator= (const ASerializable &r) |
|
virtual | ~ASerializable () |
|
bool | deserialize (std::istream &is, bool verbose=true) |
|
bool | serialize (std::ostream &os, bool verbose=true) const |
|
bool | dumpToNF (const String &neutralFilename, bool verbose=false) const |
|
PolyLine2D::~PolyLine2D |
( |
| ) |
|
|
virtual |
void PolyLine2D::addPoint |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
double PolyLine2D::angleAtPolyline |
( |
const PolyPoint2D & |
pldist, |
|
|
int |
nb_neigh = 0 |
|
) |
| const |
PolyLine2D * PolyLine2D::createFromNF |
( |
const String & |
neutralFilename, |
|
|
bool |
verbose = true |
|
) |
| |
|
static |
Find the shortest distance between two points (x1,y1) and (x2,y2) which belong to the current polyline
- Returns
- Minimum distance
- Parameters
-
double PolyLine2D::distanceAtPolyline |
( |
const PolyPoint2D & |
pldist, |
|
|
const VectorDouble & |
target, |
|
|
int |
nb_neigh |
|
) |
| const |
double PolyLine2D::distanceBetweenPoints |
( |
double |
ap, |
|
|
double |
al, |
|
|
const VectorDouble & |
xy1, |
|
|
const VectorDouble & |
xy2 |
|
) |
| const |
Find the shortest distance between two points (x1,y1) and (x2,y2) passing through a polyline
- Returns
- Minimum distance
- Parameters
-
[in] | ap | Coefficient applied to the projected distances |
[in] | al | Coefficient applied to the distance along line |
[in] | xy1 | Coordinates of the first point |
[in] | xy2 | Coordinates of the second point |
int PolyLine2D::getNPoints |
( |
| ) |
const |
|
inline |
Returns the point of the PolyLine located at shortest distance from Target
- Returns
- PolyPoint2D structure
- Parameters
-
[in] | xy0 | Coordinates of the target point |
double PolyLine2D::getX |
( |
int |
i | ) |
const |
|
inline |
double PolyLine2D::getXmax |
( |
| ) |
const |
|
inline |
double PolyLine2D::getXmin |
( |
| ) |
const |
|
inline |
double PolyLine2D::getY |
( |
int |
i | ) |
const |
|
inline |
double PolyLine2D::getYmax |
( |
| ) |
const |
|
inline |
double PolyLine2D::getYmin |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: