All,
Quick question regarding Ellipse’s – specifically orientation; the documentation does not seem consistent. I am using JavaScript to build a CZML object which is then processed via a data source. Currently using Cesium.Math.toRadians to take a deg. value and convert to proper orientation, for example:
czmlObj.ellipse = { …, orientation: Cesium.Math.toRadians(degreesOrientation), … };
The documentation for EllipseGeometry states:
rotation
Number
0.0
optional
The angle of rotation counter-clockwise from north.
The documentation for EllipseGeometryOutline orientation states:
rotation
Number
0.0
optional
The angle from north (clockwise) in radians.
Both examples show setting orientation via Cesium.Math.toRadians(degAngle). As you can see, the orientation description for each of the above differs in units and clockwise versus counter-clockwise.
Is Ellipse orientation truly counter-clockwise or does it depend on the angle in deg.? If I have an ellipse orientation of, say, 15 deg. from 0 deg. North, should ellipse.orientation (in CZML) be set to:
- Cesium.Math.toRadians( orientation - 90)?
- Cesium.Math.toRadians( orientation )?
- just orientation
- just orientation - 90
Thank you.
- Chris