#include <shapes.h>
|
| double | Length () const |
| | Get the length of this point (the norm).
|
| |
| double | Normalize () |
| | Convert this point into a unit point. Returns the Length.
|
| |
| void | operator*= (double a) |
| | Multiply this point by a scalar.
|
| |
| void | operator+= (const Point &v) |
| | Add a point to this point.
|
| |
| Point | operator- () const |
| | Negate this point.
|
| |
| void | operator-= (const Point &v) |
| | Subtract a point from this point.
|
| |
| | Point () |
| | Default constructor does nothing (for performance).
|
| |
| | Point (double x, double y) |
| | Construct using coordinates.
|
| |
| void | set (double x_, double y_) |
| | Set this point to some specified coordinates.
|
| |
| void | set_zero () |
| | Set this point to all zeros.
|
| |
|
| std::vector< Edge * > | edge_list |
| | The edges this point constitutes an upper ending point.
|
| |
| double | x |
| |
| double | y |
| |
◆ Point() [1/2]
Default constructor does nothing (for performance).
References x, and y.
◆ Point() [2/2]
| p2t::Point::Point |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
inline |
Construct using coordinates.
◆ Length()
| double p2t::Point::Length |
( |
| ) |
const |
|
inline |
Get the length of this point (the norm).
References x, and y.
Referenced by Normalize().
◆ Normalize()
| double p2t::Point::Normalize |
( |
| ) |
|
|
inline |
Convert this point into a unit point. Returns the Length.
References Length(), x, and y.
◆ operator*=()
| void p2t::Point::operator*= |
( |
double |
a | ) |
|
|
inline |
Multiply this point by a scalar.
References x, and y.
◆ operator+=()
| void p2t::Point::operator+= |
( |
const Point & |
v | ) |
|
|
inline |
Add a point to this point.
References x, and y.
◆ operator-()
| Point p2t::Point::operator- |
( |
| ) |
const |
|
inline |
Negate this point.
References set(), x, and y.
◆ operator-=()
| void p2t::Point::operator-= |
( |
const Point & |
v | ) |
|
|
inline |
Subtract a point from this point.
References x, and y.
◆ set()
| void p2t::Point::set |
( |
double |
x_, |
|
|
double |
y_ |
|
) |
| |
|
inline |
Set this point to some specified coordinates.
References x, and y.
Referenced by operator-().
◆ set_zero()
| void p2t::Point::set_zero |
( |
| ) |
|
|
inline |
Set this point to all zeros.
References x, and y.
◆ edge_list
| std::vector<Edge*> p2t::Point::edge_list |
The edges this point constitutes an upper ending point.
Referenced by p2t::Edge::Edge().
Referenced by p2t::cmp(), p2t::Cross(), p2t::Cross(), p2t::Cross(), p2t::Dot(), p2t::Edge::Edge(), p2t::InScanArea(), Length(), Normalize(), p2t::operator!=(), p2t::operator*(), operator*=(), p2t::operator+(), operator+=(), operator-(), p2t::operator-(), operator-=(), p2t::operator==(), p2t::Orient2d(), Point(), set(), set_zero(), osmscout::Triangulate::TriangulatePolygon(), osmscout::Triangulate::TriangulatePolygon(), osmscout::Triangulate::TriangulatePolygon(), and osmscout::Triangulate::TriangulateWithHoles().
Referenced by p2t::cmp(), p2t::Cross(), p2t::Cross(), p2t::Cross(), p2t::Dot(), p2t::Edge::Edge(), p2t::InScanArea(), Length(), Normalize(), p2t::operator!=(), p2t::operator*(), operator*=(), p2t::operator+(), operator+=(), operator-(), p2t::operator-(), operator-=(), p2t::operator==(), p2t::Orient2d(), Point(), set(), set_zero(), osmscout::Triangulate::TriangulatePolygon(), osmscout::Triangulate::TriangulatePolygon(), osmscout::Triangulate::TriangulatePolygon(), and osmscout::Triangulate::TriangulateWithHoles().
The documentation for this struct was generated from the following file: