public static class GeoArray.Float extends GeoArray.Adapter implements GeoArray.Mutable
GeoArray.Adapter, GeoArray.Double, GeoArray.Float, GeoArray.Mutable
Modifier | Constructor and Description |
---|---|
protected |
GeoArray.Float(float[] coords) |
|
GeoArray.Float(Geo[] geos) |
|
GeoArray.Float(GeoArray ga) |
Modifier and Type | Method and Description |
---|---|
void |
closeArray()
Ensure that the Geo array starts and ends with the same values.
|
static GeoArray.Float |
createFromGeoCoords(float[] xyz) |
static GeoArray.Float |
createFromLatLonDegrees(double[] latlondeg) |
static GeoArray.Float |
createFromLatLonDegrees(float[] latlondeg) |
static GeoArray.Float |
createFromLatLonRadians(double[] latlonrad) |
static GeoArray.Float |
createFromLatLonRadians(float[] latlonrad) |
boolean |
equals(int index,
Geo comp) |
Geo |
get(int i)
Get a Geo represented by the index i.
|
Geo |
get(int i,
Geo ret)
Load the values for Geo at index i into ret.
|
int |
getSize()
Get the number of Geo points represented by this array.
|
void |
removeDups()
Modify, if needed, the Geo array with the duplicates removed.
|
void |
set(int i,
double lat,
double lon,
boolean isDegrees)
Set the values for the provided index to the latitude, longitude.
|
void |
set(int i,
double x,
double y,
double z)
Set the values for the provided index to the values x, y, z, which are
vector Geo values, *not* lat, lon and height.
|
void |
set(int i,
Geo g)
Set the values for the provided index to the values represented by g.
|
area, distance, toLLDegrees, toLLRadians, toPointArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
area, distance, toLLDegrees, toLLRadians, toPointArray
public GeoArray.Float(Geo[] geos)
public GeoArray.Float(GeoArray ga)
protected GeoArray.Float(float[] coords)
public static GeoArray.Float createFromLatLonDegrees(float[] latlondeg)
public static GeoArray.Float createFromLatLonDegrees(double[] latlondeg)
public static GeoArray.Float createFromLatLonRadians(float[] latlonrad)
public static GeoArray.Float createFromLatLonRadians(double[] latlonrad)
public static GeoArray.Float createFromGeoCoords(float[] xyz)
public int getSize()
GeoArray
public void set(int i, double x, double y, double z)
GeoArray.Mutable
set
in interface GeoArray.Mutable
public void set(int i, Geo g)
GeoArray.Mutable
set
in interface GeoArray.Mutable
public void set(int i, double lat, double lon, boolean isDegrees)
GeoArray.Mutable
set
in interface GeoArray.Mutable
isDegrees
- true if lat/lon in decimal degrees.public Geo get(int i)
GeoArray
public Geo get(int i, Geo ret)
GeoArray
public boolean equals(int index, Geo comp)
public void closeArray()
closeArray
in interface GeoArray
public void removeDups()
removeDups
in interface GeoArray
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details