Classes | |
struct | geometry::point |
struct | geometry::line |
Functions | |
double | distance (const point &p1, const point &p2) |
double | distance (const line &l, const point &p) |
double | area (Vertex *p1, Vertex *p2, Vertex *p3) |
bool | intersect (const line &l1, const line &l2) |
|
Calculate area of triangle (p1/p2/p3).
Definition at line 16 of file geometry.cpp. References Vertex::x(), and Vertex::y(). Referenced by DelaunayMeshGenerator::generate(). |
|
Get distance of point to line.
Definition at line 39 of file geometry.cpp. References distance(), geometry::line::p1, geometry::line::p2, geometry::point::x, and geometry::point::y. |
|
Calculate distance from point
Definition at line 30 of file geometry.cpp. References geometry::point::x, and geometry::point::y. Referenced by distance(), and intersect(). |
|
Test intersection of lines
Definition at line 55 of file geometry.cpp. References distance(), geometry::line::p1, geometry::line::p2, geometry::point::x, and geometry::point::y. |