VPTissue Reference Manual
|
Provides geometric functions. More...
#include <Geom.h>
Static Public Member Functions | |
static std::tuple< double, double, double > | CircumCircle (double x1, double y1, double x2, double y2, double x3, double y3) |
Calculate circumcircle of triangle (x1,y1), (x2,y2), (x3,y3) More... | |
static std::array< double, 3 > | Intersection (const std::array< double, 3 > &v1, const std::array< double, 3 > &v2, const std::array< double, 3 > &v3, const std::array< double, 3 > &v4) |
Intersection of two lines in x-y plane.s. | |
static int | isLeft (const std::array< double, 3 > &P0, const std::array< double, 3 > &P1, const std::array< double, 3 > &P2) |
IsLeft tests if a point is Left|On|Right of an infinite line. More... | |
static int | wn_PnPoly (const std::array< double, 3 > &p, const std::vector< Node * > &nodes) |
Calculates winding number to test whether a point is inside polygon (wn=0 iff p outside). More... | |
|
static |
|
inlinestatic |
IsLeft tests if a point is Left|On|Right of an infinite line.
See: http://geomalgorithms.com/a03-_inclusion.html
|
inlinestatic |
Calculates winding number to test whether a point is inside polygon (wn=0 iff p outside).
See: http://geomalgorithms.com/a03-_inclusion.html
p | The point for which winding number is calculated |
nodes | Vertex points of a polygon V[n+1] with V[n]=V[0] |
Definition at line 90 of file Geom.h.
References SimPT_Sim::Container::make_const_circular(), and SimPT_Sim::Container::next().