Class generatexy

java.lang.Object
  |
  +--generatexy

class generatexy
extends java.lang.Object

TreeGrOSS : class generatexy creates random tree posistions, but distributes them that there is a certain distance between them http://treegross.sourceforge.net Version 16-Aug-2002


Constructor Summary
(package private) generatexy()
           
 
Method Summary
(package private)  int pnpoly(double x, double y, stand st)
          check if a point is in polygon , if return is 0 then outside
(package private)  void zufall(stand st)
          calculates xy values for trees in the area defined by cornerpoints, there is a minimum distance of two trees .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

generatexy

generatexy()
Method Detail

zufall

void zufall(stand st)
calculates xy values for trees in the area defined by cornerpoints, there is a minimum distance of two trees . This distance becomes smaller with each try, max. 20 tries


pnpoly

int pnpoly(double x,
           double y,
           stand st)
check if a point is in polygon , if return is 0 then outside