I am trying to use EllipsoidalOccluder to determine if a point is below the horizon. My code always returns true (visible) and I am not sure what I am doing wrong. I suspect that it has to do with different coordinate systems?
Here is my code:
var cameraPosition = scene.getCamera().position;
var occluderEllipsoid = Cesium.Ellipsoid.UNIT_SPHERE;
var occluder = new Cesium.EllipsoidalOccluder(occluderEllipsoid, cameraPosition);
var testPoint = Cesium.Cartographic.fromDegrees(-117.16, 32.71, 150.0);
var visible = occluder.isPointVisible(testPoint);
console.log(visible);
Thank you in advance.
Steve