Can't get correct values with cartesianToCartographic

I have these methods on a class. The problem is that getCamera is returning very low values for the lat/lon.
I’ve also tried using Cesium.Ellipsoid.WGS84 as the Ellipsoid.

setCameraPosition(position: CameraPosition): void {{
position: Cesium.Cartesian3.fromDegrees(position.longitude, position.latitude, position.range),
heading: 0.0,
pitch: -Cesium.Math.PI_OVER_TWO,
roll: 0.0

getCameraPosition(): CameraPosition {
var camera =;
var ellipsoid = this.viewer.scene.globe.ellipsoid;
var coordinate = ellipsoid.cartesianToCartographic(camera.position);
return {
latitude: coordinate.latitude,
longitude: coordinate.longitude,
range: coordinate.height

Are you expecting degrees? The units for latitude/longitude are radians. Use Cesium.Math.toDegrees(coordinate.latitude).

Derp, thanks.

isn’t geometry fun :slight_smile: