org.dolben.poly
Class Cuboid

java.lang.Object
  extended by org.dolben.poly.Polyhedron
      extended by org.dolben.poly.Cuboid
Direct Known Subclasses:
Cube

public class Cuboid
extends Polyhedron

A cuboid.


Field Summary
 
Fields inherited from class org.dolben.poly.Polyhedron
face, vertex
 
Constructor Summary
Cuboid()
          Creates a cube.
Cuboid(double length, double width, double height)
          Creates a cuboid, length x width x height.
 
Method Summary
 void create()
          Sets the vertices and faces of a cube.
 void create(double l, double w, double h)
          Sets the vertices and faces of a cuboid.
 double[] getExtent()
          Gets the corner with all positive components.
 
Methods inherited from class org.dolben.poly.Polyhedron
getFace, getFaceIndices, getFaces, getPosition, getRadius, getVertex, getVertexCount, getVertices, rotate, scale, setRadius, toString, translate, turnInsideOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cuboid

public Cuboid(double length,
              double width,
              double height)
Creates a cuboid, length x width x height.


Cuboid

public Cuboid()
Creates a cube.

Method Detail

getExtent

public double[] getExtent()
Gets the corner with all positive components.


create

public void create()
Sets the vertices and faces of a cube.

Specified by:
create in class Polyhedron

create

public void create(double l,
                   double w,
                   double h)
Sets the vertices and faces of a cuboid.