public class SphericalUtils extends Object
Constructor and Description |
---|
SphericalUtils() |
Modifier and Type | Method and Description |
---|---|
static double |
computeArea(JsArray<LatLng> loop)
Computes the area of the given loop.
|
static double |
computeArea(JsArray<LatLng> loop,
int radius)
Computes the area of the given loop.
|
static double |
computeArea(MVCArray<LatLng> loop)
Computes the area of the given loop.
|
static double |
computeArea(MVCArray<LatLng> loop,
int radius)
Computes the area of the given loop.
|
static double |
computeDistanceBetween(LatLng from,
LatLng to)
Computes the distance between two LatLngs.
|
static double |
computeDistanceBetween(LatLng from,
LatLng to,
int radius)
Computes the distance between two LatLngs.
|
static double |
computeHeading(LatLng from,
LatLng to)
Computes the heading from one LatLng to another LatLng.
|
static double |
computeLength(JsArray<LatLng> path)
Computes the length of the given path.
|
static double |
computeLength(JsArray<LatLng> path,
int radius)
Computes the length of the given path.
|
static double |
computeLength(MVCArray<LatLng> path)
Computes the length of the given path.
|
static double |
computeLength(MVCArray<LatLng> path,
int radius)
Computes the length of the given path.
|
static LatLng |
computeOffset(LatLng from,
int distance,
int heading)
Computes the LatLng produced by starting from a given LatLng and heading a given distance.
|
static LatLng |
computeOffset(LatLng from,
int distance,
int heading,
int radius)
Computes the LatLng produced by starting from a given LatLng and heading a given distance.
|
static double |
computeSignedArea(JsArray<LatLng> loop)
Computes the signed area of the given loop.
|
static double |
computeSignedArea(JsArray<LatLng> loop,
int radius)
Computes the signed area of the given loop.
|
static double |
computeSignedArea(MVCArray<LatLng> loop)
Computes the signed area of the given loop.
|
static double |
computeSignedArea(MVCArray<LatLng> loop,
int radius)
Computes the signed area of the given loop.
|
static LatLng |
interpolate(LatLng from,
LatLng to,
double fraction)
Travels a fraction of the way from one LatLng to another LatLng.
|
public static final double computeArea(JsArray<LatLng> loop)
loop
- public static final double computeArea(MVCArray<LatLng> loop)
loop
- public static final double computeArea(JsArray<LatLng> loop, int radius)
loop
- radius
- public static final double computeArea(MVCArray<LatLng> loop, int radius)
loop
- radius
- public static final double computeDistanceBetween(LatLng from, LatLng to)
from
- to
- public static final double computeDistanceBetween(LatLng from, LatLng to, int radius)
from
- to
- radius
- public static final double computeHeading(LatLng from, LatLng to)
from
- to
- public static final double computeLength(JsArray<LatLng> path)
path
- public static final double computeLength(MVCArray<LatLng> path)
path
- public static final double computeLength(JsArray<LatLng> path, int radius)
path
- radius
- public static final double computeLength(MVCArray<LatLng> path, int radius)
path
- radius
- public static final LatLng computeOffset(LatLng from, int distance, int heading)
from
- distance
- heading
- public static final LatLng computeOffset(LatLng from, int distance, int heading, int radius)
from
- distance
- heading
- radius
- public static final double computeSignedArea(JsArray<LatLng> loop)
loop
- public static final double computeSignedArea(MVCArray<LatLng> loop)
loop
- public static final double computeSignedArea(JsArray<LatLng> loop, int radius)
loop
- radius
- public static final double computeSignedArea(MVCArray<LatLng> loop, int radius)
loop
- radius
- Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.