Hi,
I am trying to calculate the clockwise angle from north pole to a line. I draw a line on the globe in the following way:
I create a line after clicking once at the start and then at the end point something like:
if(!entity) {
entity = viewer.entities.add({
polyline : {
positions : [firstPoint, cartesian],
width : 10.0,
material : new Cesium.PolylineArrowMaterialProperty(new
Cesium.Color(1.0, 0.0, 0.0, 1.0)),
depthFailMaterial : new Cesium.PolylineArrowMaterialProperty(new
Cesium.Color(1.0, 0.0, 0.0, 0.5)),
},
nonPickable: true,
});
} else {
entity.polyline.positions = [firstPoint,endPoint];
}
How can i now measure the north bearing for this line, or any line i draw on the globe like this?