Uncaught ReferenceError: Cartographic is not defined

in head i have

and this is the line that gives error

var position = new Cartographic(Math.toRadians(62), Math.toRadians(-7), 500);

do i have to include other javascript libs ?

The toRadians helper is part of Cesium.Math. Try this:

var position = new Cesium.Cartographic(Cesium.Math.toRadians(62), Cesium.Math.toRadians(-7), 500);


Thanks that worked