由角,宽度和高度给出的边框矩形.
| Name | Type | Default | Description |
|---|---|---|---|
x |
number |
0.0
|
optional 矩形的x坐标. |
y |
number |
0.0
|
optional 矩形的y坐标. |
width |
number |
0.0
|
optional 长方形的宽度. |
height |
number |
0.0
|
optional 长方形的高度. |
See:
Members
Methods
static Cesium.BoundingRectangle.clone(rectangle, result) → BoundingRectangle
复制 Bonding 矩形实例 .
| Name | Type | Description |
|---|---|---|
rectangle |
BoundingRectangle | 边框矩形重复 . |
result |
BoundingRectangle | optional 存储结果的对象 . |
Returns:
The modified result parameter or a new BoundingRectangle instance if one was not provided. (Returns undefined if rectangle is undefined)
比较所提供的 Bbounding矩形组件并返回
-NT+0+Treal NT+1+,如果两者是相等的, NT+2+false NT+3+否则.
| Name | Type | Description |
|---|---|---|
left |
BoundingRectangle | optional 初界圆矩. |
right |
BoundingRectangle | optional 第二界圆矩. |
Returns:
如果左右对等, 则使用 NT 0 true NT 1 , 否则使用 NT 2 false NT 3 .
static Cesium.BoundingRectangle.expand(rectangle, point, result) → BoundingRectangle
通过拓宽提供的矩形来计算边框矩形,直到它包含提供的点为止.
| Name | Type | Description |
|---|---|---|
rectangle |
BoundingRectangle | 一个要扩张的矩形. |
point |
Cartesian2 | 绑在矩形上. |
result |
BoundingRectangle | optional 存储结果的对象 . |
Returns:
如果未提供修改的结果参数或新的 Bbounding矩形实例 .
static Cesium.BoundingRectangle.fromPoints(positions, result) → BoundingRectangle
计算包含2D点列表的边框矩形.
矩形以左下角为方向.
| Name | Type | Description |
|---|---|---|
positions |
Array.<Cartesian2> | 边框矩形将附加的点列表 。 每点必须拥有 NT 0 x NT 1 和 NT 2 y NT 3 属性. |
result |
BoundingRectangle | optional 存储结果的对象 . |
Returns:
如果未提供修改的结果参数或新的 Bbounding矩形实例 .
static Cesium.BoundingRectangle.fromRectangle(rectangle, projection, result) → BoundingRectangle
从矩形计算一个边框矩形.
| Name | Type | Default | Description |
|---|---|---|---|
rectangle |
Rectangle | 用于创建边框矩形的有效矩形. | |
projection |
object |
地理预测
|
optional 用于将矩形投射为2D的投影. |
result |
BoundingRectangle | optional 存储结果的对象 . |
Returns:
如果未提供修改的结果参数或新的 Bbounding矩形实例 .
static Cesium.BoundingRectangle.intersect(left, right) → Intersect
确定两个矩是否交叉.
| Name | Type | Description |
|---|---|---|
left |
BoundingRectangle | 检查交叉处的矩形 . |
right |
BoundingRectangle | 另一个矩形来检查交叉点. |
Returns:
Intersect.INTERSECTING if the rectangles intersect, Intersect.OUTSIDE otherwise.
将所提供的实例存储到所提供的数组中.
| Name | Type | Default | Description |
|---|---|---|---|
value |
BoundingRectangle | 包装的价值. | |
array |
Array.<number> | 装入的阵列. | |
startingIndex |
number |
0
|
optional The index into the array at which to start packing the elements. |
Returns:
装入的阵列
static Cesium.BoundingRectangle.union(left, right, result) → BoundingRectangle
计算一个边界矩,即左右边界矩的结合.
| Name | Type | Description |
|---|---|---|
left |
BoundingRectangle | 绑定矩形的矩形. |
right |
BoundingRectangle | 被捆绑的矩形. |
result |
BoundingRectangle | optional 存储结果的对象 . |
Returns:
如果未提供修改的结果参数或新的 Bbounding矩形实例 .
static Cesium.BoundingRectangle.unpack(array, startingIndex, result) → BoundingRectangle
从组合的数组中获取实例 .
| Name | Type | Default | Description |
|---|---|---|---|
array |
Array.<number> | 装填的阵列. | |
startingIndex |
number |
0
|
optional The starting index of the element to be unpacked. |
result |
BoundingRectangle | optional 存储结果的对象. |
Returns:
如果未提供修改的结果参数或新的 Bbounding矩形实例 .
clone(result) → BoundingRectangle
重复这个 Brounding Rontangle 实例 .
| Name | Type | Description |
|---|---|---|
result |
BoundingRectangle | optional 存储结果的对象 . |
Returns:
如果未提供修改的结果参数或新的 Bbounding矩形实例 .
将此 Bbounding 矩形与所提供的 Bbounding 矩形组件进行比较并返回
-NT+0+Treal NT+1+,如果两者是相等的, NT+2+false NT+3+否则.
| Name | Type | Description |
|---|---|---|
right |
BoundingRectangle | optional 右手侧的凸起矩形. |
Returns:
-NT+0+Treal NT+1+,如果两者是相等的, NT+2+false NT+3+否则.
intersect(right) → Intersect
确定这个矩形是否与另一个矩形交叉.
| Name | Type | Description |
|---|---|---|
right |
BoundingRectangle | 检查交叉处的矩形 . |
Returns:
Intersect.INTERSECTING if the rectangles intersect, Intersect.OUTSIDE otherwise.