|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcs567.particles.Particle
public class Particle
Simple particle implementation, with miscellaneous adornments.
Field Summary | |
---|---|
(package private) javax.vecmath.Vector2d |
f
Force accumulator. |
(package private) double |
m
Default mass. |
static double |
PARTICLE_RADIUS
Radius of particle's circle graphic. |
(package private) javax.vecmath.Vector2d |
v
Velocity. |
(package private) javax.vecmath.Point2d |
x
Deformed Position. |
(package private) javax.vecmath.Point2d |
x0
Undeformed/material Position. |
Constructor Summary | |
---|---|
Particle(javax.vecmath.Point2d x0)
Constructs particle with the specified material/undeformed coordinate, p0. |
Method Summary | |
---|---|
void |
display(javax.media.opengl.GL gl)
Draws circular particle using a display list. |
boolean |
getHighlight()
True if particle should be drawn highlighted. |
boolean |
isPinned()
Returns true if currently pinned. |
void |
setHighlight(boolean highlight)
Specifies whether particle should be drawn highlighted. |
void |
setPin(boolean fix)
Specifies whether or not this particle is fixed in space via a pin constraint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double PARTICLE_RADIUS
double m
javax.vecmath.Point2d x
javax.vecmath.Point2d x0
javax.vecmath.Vector2d v
javax.vecmath.Vector2d f
Constructor Detail |
---|
Particle(javax.vecmath.Point2d x0)
Method Detail |
---|
public void display(javax.media.opengl.GL gl)
public void setHighlight(boolean highlight)
public boolean getHighlight()
public void setPin(boolean fix)
public boolean isPinned()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |