TZ
- public static interface AccumulativeGridSampler.AccumulativeMetric<TZ>
Modifier and Type | Method and Description |
---|---|
boolean |
closeSample(ZSampleGrid.ZSamplePoint<TZ> point)
Callback function to handle a "closing" sample (that is a sample post-created to surround
existing samples and provide nice and smooth edges for the algorithm).
|
TZ |
cumulateSample(org.locationtech.jts.geom.Coordinate C0,
org.locationtech.jts.geom.Coordinate Cs,
TZ z,
TZ zS,
double offRoadSpeed)
Callback function to handle a new added sample.
|
TZ cumulateSample(org.locationtech.jts.geom.Coordinate C0, org.locationtech.jts.geom.Coordinate Cs, TZ z, TZ zS, double offRoadSpeed)
C0
- The initial position of the sample, as given in the addSample() call.Cs
- The position of the sample on the grid, never farther away than (dX,dY)z
- The z value of the initial sample, as given in the addSample() call.zS
- The previous z value of the sample. Can be null if this is the first time, it's
up to the caller to initialize the z value.offRoadSpeed
- The offroad speed to assume.boolean closeSample(ZSampleGrid.ZSamplePoint<TZ> point)
point
- The point to set Z.Copyright © 2019. All rights reserved.