初始化连接两个提供行星极点的椭圆形上的一条rhumb线.
| Name | Type | Default | Description |
|---|---|---|---|
start |
Cartographic | optional 路径上的初始行星点. | |
end |
Cartographic | optional 最后的行星点 在路径. | |
ellipsoid |
Ellipsoid |
Ellipsoid.default
|
optional The ellipsoid on which the rhumb line lies. |
Throws:
-
DeveloperError : angle between start and end must be at least 0.0125 radians.
Members
readonly ellipsoid : Ellipsoid
获得椭圆形.
readonly end : Cartographic
在路径上获得最后的行星点.
获得从起始点到终点的方向.
readonly start : Cartographic
获得路径上的初始行星点.
获得起始点和终点之间的表面距离
Methods
static Cesium.EllipsoidRhumbLine.fromStartHeadingDistance(start, heading, distance, ellipsoid, result) → EllipsoidRhumbLine
使用标题和距离的初始位置创建 Rhumb 线条.
| Name | Type | Default | Description |
|---|---|---|---|
start |
Cartographic | 路径上的初始行星点. | |
heading |
number | 以弧度表示的方向. | |
distance |
number | 起点和终点之间的rhumb线距离. | |
ellipsoid |
Ellipsoid |
Ellipsoid.default
|
optional The ellipsoid on which the rhumb line lies. |
result |
EllipsoidRhumbLine | optional 存储结果的对象 . |
Returns:
椭圆形RhumbLine天体.
findIntersectionWithLatitude(intersectionLatitude, result) → Cartographic
提供沿Rhumb线标明纬度的点的位置.
如果纬度超出起始点和终点的范围,则返回从该起始点到方向的第一个纬度交叉点. 这跟随Rhumb线的螺旋属性.
| Name | Type | Description |
|---|---|---|
intersectionLatitude |
number | 纬度,用弧度表示,在纬度上,用标题从起点找到交叉点. |
result |
Cartographic | optional 存储结果的对象 . |
Returns:
沿rhumb线的交叉点位置,在没有交叉点或无限交叉点的情况下未定义.
Throws:
-
DeveloperError : start and end must be set before calling function findIntersectionWithLongitude.
findIntersectionWithLongitude(intersectionLongitude, result) → Cartographic
提供沿Rhumb线标明的经度点的位置.
如果经度超出起始点和终点的范围,则返回从起始点到方向的经度的第一个交叉点. 这跟随Rhumb线的螺旋属性.
| Name | Type | Description |
|---|---|---|
intersectionLongitude |
number | 经度,以弧度表示,在纬度上,用标题从起点找到交叉点. |
result |
Cartographic | optional 存储结果的对象 . |
Returns:
沿rhumb线的交叉点位置,在没有交叉点或无限交叉点的情况下未定义.
Throws:
-
DeveloperError : start and end must be set before calling function findIntersectionWithLongitude.
interpolateUsingFraction(fraction, result) → Cartographic
提供沿Rhumb线指定部分的点的位置.
| Name | Type | Description |
|---|---|---|
fraction |
number | 初始点和最终点之间的距离部分. |
result |
Cartographic | optional 存储结果的对象 . |
Returns:
沿Rhumb线的点位置.
interpolateUsingSurfaceDistance(distance, result) → Cartographic
提供沿Rhumb线指示距离的点的位置.
| Name | Type | Description |
|---|---|---|
distance |
number | 从初始点到RhumbLine沿线兴趣点的距离. |
result |
Cartographic | optional 存储结果的对象 . |
Returns:
沿Rhumb线的点位置.
Throws:
-
DeveloperError : start and end must be set before calling function interpolateUsingSurfaceDistance
设置 Rhumb 线的起点和终点.
| Name | Type | Description |
|---|---|---|
start |
Cartographic | 路径上的初始行星点. |
end |
Cartographic | 最后的行星点 在路径. |