Hello,

Should’t “Rectangle.fromCartographicArray” function account for cases where the rectangle crosses 180 degrees longitude? I see other function like “Rectangle.contains” expect a rectangle’s east to be sometimes less than its west, I am assuming that is to cover the cases where the rectangle crosses 180 degrees?

Here is what I am doing. I compute the current minimum bounding rectangle using the code below. Then I am trying to use “Rectangle.contains” to test if a bunch cartographic points are in view.

```
```

var leftTop = camera.pickEllipsoid(new Cesium.Cartesian2(0, 0), ellipsoid);

var leftBottom = camera.pickEllipsoid(new Cesium.Cartesian2(0, canvasHeight), ellipsoid);

var rightTop = camera.pickEllipsoid(new Cesium.Cartesian2(canvasWidth, 0), ellipsoid);

var rightBottom = camera.pickEllipsoid(new Cesium.Cartesian2(canvasWidth, canvasHeight), ellipsoid);

if (leftTop !== undefined && leftBottom !== undefined && rightTop !== undefined && rightBottom !== undefined) {

var cartographicArray = ;

```
[leftTop, leftBottom, rightTop, rightBottom].forEach(function (point) {
cartographicArray.push(ellipsoid.cartesianToCartographic(point));
});
```

var rectangle = Rectangle.fromCartographicArray(cartographicArray);

}

```
Thanks,
```

```
Tim
```