org.deegree.rendering.r2d
Class GeometryGenerator

java.lang.Object
  extended by 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 $

Constructor Summary
GeometryGenerator()
           
 
Method Summary
static Curve randomCurve(int max, double offx, double offy)
           
static Point randomPoint(int max, double offx, double offy)
           
static Polygon randomQuad(int max, double offx, double offy)
           
static Polygon randomTriangle(int max, double offx, double offy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryGenerator

public GeometryGenerator()
Method Detail

randomTriangle

public static Polygon randomTriangle(int max,
                                     double offx,
                                     double offy)
Parameters:
max - generate points between offx/offy and max + offx/offy
offx -
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.