public class DragForce extends AbstractForce
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_DRAG_COEFF |
static float |
DEFAULT_MAX_DRAG_COEFF |
static float |
DEFAULT_MIN_DRAG_COEFF |
static int |
DRAG_COEFF |
maxValues, minValues, params
Constructor and Description |
---|
DragForce()
Create a new DragForce with default drag co-efficient.
|
DragForce(float dragCoeff)
Create a new DragForce.
|
Modifier and Type | Method and Description |
---|---|
void |
getForce(ForceItem item)
Throws an UnsupportedOperationException.
|
protected java.lang.String[] |
getParameterNames() |
boolean |
isItemForce()
Returns true.
|
getForce, getMaxValue, getMinValue, getParameter, getParameterCount, getParameterName, init, isSpringForce, setMaxValue, setMinValue, setParameter
public static final float DEFAULT_DRAG_COEFF
public static final float DEFAULT_MIN_DRAG_COEFF
public static final float DEFAULT_MAX_DRAG_COEFF
public static final int DRAG_COEFF
public DragForce(float dragCoeff)
dragCoeff
- the drag co-efficientpublic DragForce()
public boolean isItemForce()
isItemForce
in interface Force
isItemForce
in class AbstractForce
Force.isItemForce()
protected java.lang.String[] getParameterNames()
getParameterNames
in class AbstractForce
AbstractForce.getParameterNames()
public void getForce(ForceItem item)
AbstractForce
getForce
in interface Force
getForce
in class AbstractForce
item
- the ForceItem on which to compute updated forcesForce.getForce(prefuse.util.force.ForceItem)
Copyright ? 2013 Regents of the University of California