public class SpatialNetwork2D
extends java.lang.Object
SpatialNetwork2D can also hold an additional location (another Continuous2D/SparseGrid2D) which might hold the nodes if the first location does not. This allows you to (for example) have the FROM nodes in one field and the TO nodes in another field. You can set this location with setAuxillaryField. Note that this will only work properly if the fields have exactly the same dimensions with respect to how their field portrayals draw them onscreen. As a sanity check: you shouldn't have one field be a Continuous2D and the other be a SparseGrid2D.
Constructor and Description |
---|
SpatialNetwork2D(SparseField2D field,
Network network) |
Modifier and Type | Method and Description |
---|---|
Double2D |
getDimensions()
Deprecated.
|
Double2D |
getObjectLocation(java.lang.Object node)
NOTE this used to be deprecated, but it has now been de-deprecated so as to be
consistent with SpatialNetwork3D.
|
void |
setAuxiliaryField(SparseField2D f) |
void |
setAuxillaryField(SparseField2D f) |
public SpatialNetwork2D(SparseField2D field, Network network)
public void setAuxiliaryField(SparseField2D f)
public void setAuxillaryField(SparseField2D f)
public Double2D getObjectLocation(java.lang.Object node)
public Double2D getDimensions()