public class VertexStore extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
class |
VertexStore.Vertex |
Modifier and Type | Field and Description |
---|---|
static double |
FIXED_FACTOR |
gnu.trove.list.TIntList |
fixedLats |
gnu.trove.list.TIntList |
fixedLons |
int |
nVertices |
Constructor and Description |
---|
VertexStore(int initialSize) |
Modifier and Type | Method and Description |
---|---|
int |
addVertex(double lat,
double lon)
Add a vertex, specifying its coordinates in double-precision floating point degrees.
|
int |
addVertexFixed(int fixedLat,
int fixedLon)
Add a vertex, specifying its coordinates in fixed-point lat and lon.
|
static double |
fixedDegreesToFloating(int fixed) |
static int |
floatingDegreesToFixed(double degrees) |
VertexStore.Vertex |
getCursor() |
VertexStore.Vertex |
getCursor(int index) |
public int nVertices
public static final double FIXED_FACTOR
public gnu.trove.list.TIntList fixedLats
public gnu.trove.list.TIntList fixedLons
public int addVertex(double lat, double lon)
public int addVertexFixed(int fixedLat, int fixedLon)
public VertexStore.Vertex getCursor()
public VertexStore.Vertex getCursor(int index)
public static int floatingDegreesToFixed(double degrees)
public static double fixedDegreesToFloating(int fixed)
Copyright © 2015. All rights reserved.