Diplo
 All Classes Namespaces Functions Variables Properties
Static Public Member Functions | List of all members
Diplo.Geometry.PointPosition Class Reference

Metoda posudzuje, či bod je vo vnútri mnohouholníka - poligónu. Overovanie sa zaistí tak, že sa overí, či bod leži "na ľavo" od každej hrany mnohouholníka. More...

Static Public Member Functions

static Boolean isPointInPoligon (Point P, Stack< Point > edgeBox)
  More...
 
static Boolean isOnTheLeft (int xp, int yp, Point p1, Point p2)
  More...
 

Detailed Description

Metoda posudzuje, či bod je vo vnútri mnohouholníka - poligónu. Overovanie sa zaistí tak, že sa overí, či bod leži "na ľavo" od každej hrany mnohouholníka.

Member Function Documentation

static Boolean Diplo.Geometry.PointPosition.isOnTheLeft ( int  xp,
int  yp,
Point  p1,
Point  p2 
)
static

Určenie, či bod leží na ľavo od úsečky.

Parameters
xpX parameter bodu pre overenie
ypY parameter bodu pre overenie
p1Bod 1 úsečky
p2Bod 2 úsečky
Returns
static Boolean Diplo.Geometry.PointPosition.isPointInPoligon ( Point  P,
Stack< Point >  edgeBox 
)
static

Metóda určí, či bod leží v mnohouholníku - poligónu.

Parameters
PBod, ktorý sa posudzuje či je v strede poligónu.
edgeBoxPoligón, ktorý je charakterizovaný množinou bodov.
Returns

The documentation for this class was generated from the following file: