|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jtsexample.geom.prep.PreparedGeometryExample
public class PreparedGeometryExample
Shows use of PreparedGeometry in a batch (repeated) operation.
The example uses a Monte Carlo method to approximate the value of Pi.
Given a circle inscribed in a square and a large number of random points
in the square, the number of points which intersect the circle approximates Pi/4.
This involves repeated Point-In-Polygon tests, which is one of the
geometry tests optimized by the PreparedGeometry implementation for polygons.
| Constructor Summary | |
|---|---|
PreparedGeometryExample()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PreparedGeometryExample()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||