public interface SubstrateObject
Modifier and Type | Method and Description |
---|---|
boolean |
boundingBoxIntersects(double[] subsCoords,
double[] step)
checks if a step will intersect the bounding box for the
object.
|
boolean |
crosses(double[] walkerPos,
double[] step,
double[] normal,
double[] d,
boolean skipCurrent,
double origLength,
double[] intDist,
boolean[] in,
double[] p)
checks if a given step will cross a membrane in the object
|
BoundingBox |
getBoundingBox()
returns the oriented bounding box for the object.
|
double |
getDiffusivityAt(double[] subsCoords)
returns the diffusivity at the given location.
|
boolean |
inside(double[] subsCoords)
checks if a point is inside or outside the object
|
boolean |
intersectsCubicRegion(double[] bottomLeft,
double[] topRight)
checks if the object intersects a cubic region.
|
boolean crosses(double[] walkerPos, double[] step, double[] normal, double[] d, boolean skipCurrent, double origLength, double[] intDist, boolean[] in, double[] p)
walkerPos
- position of walker in spacestep
- step it wants to makenormal
- space to return surface normald
- space to return distance to interaction point in normal dirskipCurrent
- should we skip the barrier the walker is currently sitting on?origLength
- original length of stepintDist
- proportion of step before interaction pointin
- are we initially inside or outside the object?double getDiffusivityAt(double[] subsCoords)
subsCoords
- coords mapped onto substrateBoundingBox getBoundingBox()
boolean boundingBoxIntersects(double[] subsCoords, double[] step)
subsCoords
- step
- boolean inside(double[] subsCoords)
location
- in substrate coordsboolean intersectsCubicRegion(double[] bottomLeft, double[] topRight)
double
- bottomLeftdouble
- topRight