ssmith.opengl.shapes
Class Sphere

java.lang.Object
  extended by ssmith.opengl.shapes.Sphere

public class Sphere
extends java.lang.Object


Field Summary
 float radius
           
 float x
           
 float y
           
 float z
           
 
Constructor Summary
Sphere(float x, float y, float z, float rad)
           
 
Method Summary
 void draw(net.java.games.jogl.GL gl, net.java.games.jogl.GLU glu)
           
 boolean intersects(Sphere other)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public float x

y

public float y

z

public float z

radius

public float radius
Constructor Detail

Sphere

public Sphere(float x,
              float y,
              float z,
              float rad)
Method Detail

intersects

public boolean intersects(Sphere other)

draw

public void draw(net.java.games.jogl.GL gl,
                 net.java.games.jogl.GLU glu)