org.deegree.rendering.r2d
Class GeometryGenerator
java.lang.Object
org.deegree.rendering.r2d.GeometryGenerator
public class GeometryGenerator
- extends Object
GeometryGenerator
- Version:
- $Revision: 29642 $, $Date: 2011-02-11 13:59:33 +0100 (Fri, 11 Feb 2011) $
- Author:
- Andreas Schmitz, last edited by: $Author: lbuesching $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeometryGenerator
public GeometryGenerator()
randomTriangle
public static Polygon randomTriangle(int max,
double offx,
double offy)
- Parameters:
max
- generate points between offx/offy and max + offx/offyoffx
- offy
-
- Returns:
- a random triangle polygon
randomPoint
public static Point randomPoint(int max,
double offx,
double offy)
- Parameters:
max
- offx
- offy
-
- Returns:
- a random point
randomQuad
public static Polygon randomQuad(int max,
double offx,
double offy)
- Parameters:
max
- offx
- offy
-
- Returns:
- a random polygon with an edge in each quadrant
randomCurve
public static Curve randomCurve(int max,
double offx,
double offy)
- Parameters:
max
- offx
- offy
-
- Returns:
- a curve similar to the points of #randomQuad (but without the last)
Copyright © 2011. All Rights Reserved.