Upper left and bottom right latitude/longitude of Entire Viewport

Hi all,

It's my first time working with Cesium. Loving the product so far. This is probably a simple question but I'm not sure how to get it.

I'm trying to populate points from a Postgres/PostGIS database, but in order to get the appropriate points I need to gather all points that are in the user's current viewport.

Is there a means to get the latitude/longitude of the upper-left and bottom-right of the user's current zoom-level/view?

Infortunately, if you are in 3D view, it happens that in the user's viewport, the upper and lower points don't match a terrain.

In 2D view, you will always have the extreme points.
The function to use is scene.camera.controller.pickEllipsoid (http://cesiumjs.org/Cesium/Build/Documentation/CameraController.html#pickEllipsoid) for Cesium build to b26 .For upper build the function is scene.camera.pickEllipsoid

good luck