A description of an ellipse on an ellipsoid. Ellipse geometry can be rendered with both Primitive and GroundPrimitive.
alias EllipseGeometry
- The options object takes the following properties
- {Cartesian3} options.center The ellipse's center point in the fixed frame.
- {Number} options.semiMajorAxis The length of the ellipse's semi-major axis in meters.
- {Number} options.semiMinorAxis The length of the ellipse's semi-minor axis in meters.
- {Ellipsoid} [options.ellipsoid=Ellipsoid.WGS84] The ellipsoid the ellipse will be on.
- {Number} [options.height=0.0] The distance in meters between the ellipse and the ellipsoid surface.
- {Number} [options.extrudedHeight] The distance in meters between the ellipse's extruded face and the ellipsoid surface.
- {Number} [options.rotation=0.0] The angle of rotation counter-clockwise from north.
- {Number} [options.stRotation=0.0] The rotation of the texture coordinates counter-clockwise from north.
- {Number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The angular distance between points on the ellipse in radians.
- {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
exception {DeveloperError} semiMajorAxis and semiMinorAxis must be greater than zero.
exception {DeveloperError} semiMajorAxis must be greater than or equal to the semiMinorAxis.
exception {DeveloperError} granularity must be greater than zero.
A description of an ellipse on an ellipsoid. Ellipse geometry can be rendered with both Primitive and GroundPrimitive.
alias EllipseGeometry
- The options object takes the following properties - {Cartesian3} options.center The ellipse's center point in the fixed frame. - {Number} options.semiMajorAxis The length of the ellipse's semi-major axis in meters. - {Number} options.semiMinorAxis The length of the ellipse's semi-minor axis in meters. - {Ellipsoid} [options.ellipsoid=Ellipsoid.WGS84] The ellipsoid the ellipse will be on. - {Number} [options.height=0.0] The distance in meters between the ellipse and the ellipsoid surface. - {Number} [options.extrudedHeight] The distance in meters between the ellipse's extruded face and the ellipsoid surface. - {Number} [options.rotation=0.0] The angle of rotation counter-clockwise from north. - {Number} [options.stRotation=0.0] The rotation of the texture coordinates counter-clockwise from north. - {Number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The angular distance between points on the ellipse in radians. - {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
exception {DeveloperError} semiMajorAxis and semiMinorAxis must be greater than zero. exception {DeveloperError} semiMajorAxis must be greater than or equal to the semiMinorAxis. exception {DeveloperError} granularity must be greater than zero.
// Create an ellipse. var ellipse = new Cesium.EllipseGeometry({ center : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883), semiMajorAxis : 500000.0, semiMinorAxis : 300000.0, rotation : Cesium.Math.toRadians(60.0) }); var geometry = Cesium.EllipseGeometry.createGeometry(ellipse);
EllipseGeometry.createGeometry