|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gicentre.utils.network.traer.physics.Function<Particle,Particle>
org.gicentre.utils.network.traer.physics.Drag
public class Drag
Class capable of applying the drag on a particle to inhibit its motion.
| Field Summary | |
|---|---|
static float |
DEFAULT_DRAG
|
| Constructor Summary | |
|---|---|
Drag()
Creates a drag with the default value. |
|
Drag(float drag)
Creates a drag with the given value. |
|
| Method Summary | |
|---|---|
Particle |
apply(Particle p)
Applies this drag to the given particle. |
Drag |
setDrag(float drag)
Sets the drag to the given value. |
| Methods inherited from class org.gicentre.utils.network.traer.physics.Function |
|---|
combine, functor, transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final float DEFAULT_DRAG
| Constructor Detail |
|---|
public Drag()
public Drag(float drag)
drag - Drag to apply to particles.| Method Detail |
|---|
public Drag setDrag(float drag)
drag - Drag to apply to particles.
public Particle apply(Particle p)
apply in class Function<Particle,Particle>p - Particle upon which to apply the drag.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||