de.javagl.swogl.geometry
Class Geometries

java.lang.Object
  extended by de.javagl.swogl.geometry.Geometries

public class Geometries
extends java.lang.Object

Factory methods for creating Geometries.


Method Summary
static SimpleGeometry create(int width, int height, int verticesX, int verticesY)
          Creates a new SimpleGeometry with the given size and number of vertices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static SimpleGeometry create(int width,
                                    int height,
                                    int verticesX,
                                    int verticesY)
Creates a new SimpleGeometry with the given size and number of vertices

Parameters:
width - The size in x direction
height - The size in y direction
verticesX - The number of vertices in x direction Will be clamped to be at least 2.
verticesY - The number of vertices in y direction Will be clamped to be at least 2.
Returns:
The geometry