public class EllipsoidSurfaceRegionCoverageGridCell extends Object implements ICoverageGridCell
Constructor and Description |
---|
EllipsoidSurfaceRegionCoverageGridCell(Collection<Cartographic> gridBoundaryVertices,
double area,
Ellipsoid shape)
Initializes this 2D grid cell with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
EllipsoidSurfaceCurve |
getGridCellBoundary()
Gets the
EllipsoidSurfaceCurve that represent this grid cell's boundary. |
List<Cartographic> |
getGridCellBoundaryVertices()
Gets the grid point's grid cell boundary vertices.
|
Double |
scalarMeasure(JulianDate date,
int dimension)
Returns a scalar measure for the grid cell.
|
public EllipsoidSurfaceRegionCoverageGridCell(@Nonnull Collection<Cartographic> gridBoundaryVertices, double area, @Nonnull Ellipsoid shape)
gridBoundaryVertices
- The vertices for this cell as computed by the gridding algorithm.area
- The surface area of this region as computed by the gridding algorithm.shape
- The ellipsoid on which this grid cell is defined.ArgumentNullException
- Thrown when gridBoundaryVertices
or shape
is null
.ArgumentOutOfRangeException
- Thrown when the area is negative.ArgumentException
- Thrown when the number of boundary vertices is less than 3.@Nullable public Double scalarMeasure(@Nonnull JulianDate date, int dimension)
This grid cell can return the perimeter (dimension 1) and surface area (dimension 2). It will return null
otherwise.
Some examples of scalar measure are: for dimension 1 the perimeter, for dimension 2 the area or surface area, for dimension 3 the volume.
scalarMeasure
in interface ICoverageGridCell
date
- The date at which to evaluate the scalar measure of the grid cell.dimension
- The dimension of the scalar measure requested.null
.public final List<Cartographic> getGridCellBoundaryVertices()
public final EllipsoidSurfaceCurve getGridCellBoundary()
EllipsoidSurfaceCurve
that represent this grid cell's boundary.