@JsType(isNative=true, namespace="Cesium", name="EllipsoidGeodesic") public class EllipsoidGeodesic extends Object
Constructor and Description |
---|
EllipsoidGeodesic()
Initializes a geodesic on the ellipsoid connecting the two provided planetodetic points.
|
EllipsoidGeodesic(Cartographic start)
Initializes a geodesic on the ellipsoid connecting the two provided planetodetic points.
|
EllipsoidGeodesic(Cartographic start,
Cartographic end)
Initializes a geodesic on the ellipsoid connecting the two provided planetodetic points.
|
EllipsoidGeodesic(Cartographic start,
Cartographic end,
Ellipsoid ellipsoid)
Initializes a geodesic on the ellipsoid connecting the two provided planetodetic points.
|
Modifier and Type | Method and Description |
---|---|
Ellipsoid |
ellipsoid()
Gets the ellipsoid.
|
Cartographic |
end()
Gets the final planetodetic point on the path.
|
double |
endHeading()
Gets the heading at the final point.
|
Cartographic |
interpolateUsingFraction(double fraction,
Cartographic result)
Provides the location of a point at the indicated portion along the geodesic.
|
Cartographic |
interpolateUsingSurfaceDistance(double distance,
Cartographic result)
Provides the location of a point at the indicated distance along the geodesic.
|
void |
setEndPoints(Cartographic start,
Cartographic end)
Sets the start and end points of the geodesic
|
Cartographic |
start()
Gets the initial planetodetic point on the path.
|
double |
startHeading()
Gets the heading at the initial point.
|
double |
surfaceDistance()
Gets the surface distance between the start and end point
|
@JsConstructor public EllipsoidGeodesic()
@JsConstructor public EllipsoidGeodesic(Cartographic start)
start
- The initial planetodetic point on the path.@JsConstructor public EllipsoidGeodesic(Cartographic start, Cartographic end)
start
- The initial planetodetic point on the path.end
- The final planetodetic point on the path.@JsConstructor public EllipsoidGeodesic(Cartographic start, Cartographic end, Ellipsoid ellipsoid)
start
- The initial planetodetic point on the path.end
- The final planetodetic point on the path.ellipsoid
- The ellipsoid on which the geodesic lies. Default: Ellipsoid.WGS84()
@JsProperty(name="ellipsoid") public Ellipsoid ellipsoid()
@JsProperty(name="end") public Cartographic end()
@JsProperty(name="endHeading") public double endHeading()
@JsProperty(name="start") public Cartographic start()
@JsProperty(name="startHeading") public double startHeading()
@JsProperty(name="surfaceDistance") public double surfaceDistance()
@JsMethod public Cartographic interpolateUsingFraction(double fraction, Cartographic result)
fraction
- The portion of the distance between the initial and final points.result
- The object in which to store the result.@JsMethod public Cartographic interpolateUsingSurfaceDistance(double distance, Cartographic result)
distance
- The distance from the inital point to the point of interest along the geodesicresult
- The object in which to store the result.@JsMethod public void setEndPoints(Cartographic start, Cartographic end)
start
- The initial planetodetic point on the path.end
- The final planetodetic point on the path.Copyright © 2019. All rights reserved.