|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcs567.rigidbody.Disk
public class Disk
Representation of a circular bounding disk.
| Field Summary | |
|---|---|
(package private) javax.vecmath.Point2d |
c
Center of disk. |
(package private) double |
r
Radius of disk. |
| Constructor Summary | |
|---|---|
Disk(java.util.Collection<Block> blocks)
Builds a Disk that encloses the specified blocks in their frame of reference. |
|
Disk(javax.vecmath.Point2d center,
double radius)
Builds Disk with specified center and radius values. |
|
| Method Summary | |
|---|---|
(package private) javax.vecmath.Point2d |
c()
Fragile reference to center of Disk. |
void |
display(javax.media.opengl.GL gl)
Draws circular disk using a display list. |
boolean |
intersects(javax.vecmath.Point2d p)
True if point intersects this bounding volume. |
double |
r()
Radius of Disk. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
javax.vecmath.Point2d c
double r
| Constructor Detail |
|---|
Disk(java.util.Collection<Block> blocks)
Disk(javax.vecmath.Point2d center,
double radius)
| Method Detail |
|---|
javax.vecmath.Point2d c()
public double r()
public boolean intersects(javax.vecmath.Point2d p)
p - Point in frame of reference of Disk.public void display(javax.media.opengl.GL gl)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||