public class FlattenListOfPoints
extends java.lang.Object
implements java.io.Serializable
Points as a flat structure.| Constructor and Description |
|---|
FlattenListOfPoints(double[] flattenLngLatPoints,
double[] altitudes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
double[] |
getAltitudes() |
double[] |
getFlattenLngLatArray() |
int |
hashCode() |
java.util.List<Point> |
points()
Creates a list of
Points and returns it. |
int |
size()
Returns the total number of points stored in this flattened structure.
|
java.lang.String |
toString() |
public FlattenListOfPoints(@NonNull
double[] flattenLngLatPoints,
@Nullable
double[] altitudes)
flattenLngLatPoints - A one-dimensional array coordinates: [lng1, lat1, lng2, lat2, ...].
It is stored as is, no copy or shifting is done.altitudes - An array of altitudes of each coordinate or Double.NaN if the
coordinate does not have altitude. It is stored as is, no copy or shifting is
done.@NonNull public double[] getFlattenLngLatArray()
@Nullable public double[] getAltitudes()
Double.NaNpublic int size()
@NonNull public java.util.List<Point> points()
Points and returns it.
If possible consider using getFlattenLngLatArray() and getAltitudes()
instead.
Pointspublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object