Class DatumShiftGridGroup.Region

All Implemented Interfaces:
Shape, Cloneable
Enclosing class:
DatumShiftGridGroup<C extends javax.measure.Quantity<C>,T extends javax.measure.Quantity<T>>

private static final class DatumShiftGridGroup.Region extends IntervalRectangle
The bounds of a sub-grid, together with the subsampling level compared to the grid having the finest resolution. All values in this class are integers, but nevertheless stored as double for avoiding to cast them every time DatumShiftGridGroup.interpolateInCell(double, double, double[]) is executed.
  • Field Details

    • sx

      private final double sx
      Subsampling compared to the grid having finest resolution.
    • sy

      private final double sy
      Subsampling compared to the grid having finest resolution.
  • Constructor Details

  • Method Details

    • x

      final double x(double p)
      Converts a coordinate from the parent grid to this grid.
    • y

      final double y(double p)
    • relativeCellSize

      final double relativeCellSize(int dim)
      Returns the subsampling (compared to the grid having finest resolution) in the specified dimension.