public class mxDistanceCostFunction extends Object implements mxICostFunction
Constructor and Description |
---|
mxDistanceCostFunction() |
Modifier and Type | Method and Description |
---|---|
double |
getCost(mxCellState state)
Returns the Euclidean length of the edge defined by the absolute
points in the given state or 0 if no points are defined.
|
public double getCost(mxCellState state)
getCost
in interface mxICostFunction
state
- The cell state to be evaluatedCopyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.