public final class SparseMatrixZSampleGrid<TZ> extends Object implements ZSampleGrid<TZ>, DelaunayTriangulation<TZ>
ZSampleGrid.ZSamplePoint<TZ>| Constructor and Description |
|---|
SparseMatrixZSampleGrid(int chunkSize,
int totalSize,
double dX,
double dY,
org.locationtech.jts.geom.Coordinate center) |
| Modifier and Type | Method and Description |
|---|---|
DelaunayTriangulation<TZ> |
delaunayTriangulate()
TODO The mapping between a ZSampleGrid and a DelaunayTriangulation should not be part of an
interface but extracted to a converter.
|
Iterable<? extends org.opentripplanner.common.geometry.DelaunayEdge<TZ>> |
edges() |
int |
edgesCount() |
org.locationtech.jts.geom.Coordinate |
getCellSize() |
org.locationtech.jts.geom.Coordinate |
getCenter() |
org.locationtech.jts.geom.Coordinate |
getCoordinates(ZSampleGrid.ZSamplePoint<TZ> point) |
int[] |
getLowerLeftIndex(org.locationtech.jts.geom.Coordinate C) |
ZSampleGrid.ZSamplePoint<TZ> |
getOrCreate(int x,
int y) |
int |
getXMax() |
int |
getXMin() |
int |
getYMax() |
int |
getYMin() |
Iterator<ZSampleGrid.ZSamplePoint<TZ>> |
iterator() |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic SparseMatrixZSampleGrid(int chunkSize,
int totalSize,
double dX,
double dY,
org.locationtech.jts.geom.Coordinate center)
chunkSize - SparseMatrix chunk side (eg 8 or 16). See SparseMatrix.totalSize - Total estimated size for pre-allocating.dX - X grid size, same units as center coordinates.dY - Y grid size, same units as center coordinates.center - Center position of the grid. Do not need to be precise.public ZSampleGrid.ZSamplePoint<TZ> getOrCreate(int x, int y)
getOrCreate in interface ZSampleGrid<TZ>public Iterator<ZSampleGrid.ZSamplePoint<TZ>> iterator()
iterator in interface Iterable<ZSampleGrid.ZSamplePoint<TZ>>public org.locationtech.jts.geom.Coordinate getCoordinates(ZSampleGrid.ZSamplePoint<TZ> point)
getCoordinates in interface ZSampleGrid<TZ>point - The sample pointpublic int[] getLowerLeftIndex(org.locationtech.jts.geom.Coordinate C)
getLowerLeftIndex in interface ZSampleGrid<TZ>C - The geographical coordinatepublic org.locationtech.jts.geom.Coordinate getCenter()
getCenter in interface ZSampleGrid<TZ>public org.locationtech.jts.geom.Coordinate getCellSize()
getCellSize in interface ZSampleGrid<TZ>public int getXMin()
getXMin in interface ZSampleGrid<TZ>public int getXMax()
getXMax in interface ZSampleGrid<TZ>public int getYMin()
getYMin in interface ZSampleGrid<TZ>public int getYMax()
getYMax in interface ZSampleGrid<TZ>public int size()
size in interface ZSampleGrid<TZ>public int edgesCount()
edgesCount in interface DelaunayTriangulation<TZ>public Iterable<? extends org.opentripplanner.common.geometry.DelaunayEdge<TZ>> edges()
edges in interface DelaunayTriangulation<TZ>public DelaunayTriangulation<TZ> delaunayTriangulate()
ZSampleGriddelaunayTriangulate in interface ZSampleGrid<TZ>Copyright © 2019. All rights reserved.