A description of a circle on the ellipsoid. Circle geometry can be rendered with both Primitive and GroundPrimitive.
alias CircleGeometry
- The options object takes the following properties
- {Cartesian3} options.center The circle's center point in the fixed frame.
- {Number} options.radius The radius in meters.
- {Ellipsoid} [options.ellipsoid=Ellipsoid.WGS84] The ellipsoid the circle will be on.
- {Number} [options.height=0.0] The distance in meters between the circle and the ellipsoid surface.
- {Number} [options.granularity=0.02] The angular distance between points on the circle in radians.
- {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
- {Number} [options.extrudedHeight=0.0] The distance in meters between the circle's extruded face and the ellipsoid surface.
- {Number} [options.stRotation=0.0] The rotation of the texture coordinates, in radians. A positive rotation is counter-clockwise.
exception {DeveloperError} radius must be greater than zero.
exception {DeveloperError} granularity must be greater than zero.
// Create a circle.
var circle = new Cesium.CircleGeometry({
center : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
radius : 100000.0
});
var geometry = Cesium.CircleGeometry.createGeometry(circle);
A description of a circle on the ellipsoid. Circle geometry can be rendered with both Primitive and GroundPrimitive.
alias CircleGeometry
- The options object takes the following properties - {Cartesian3} options.center The circle's center point in the fixed frame. - {Number} options.radius The radius in meters. - {Ellipsoid} [options.ellipsoid=Ellipsoid.WGS84] The ellipsoid the circle will be on. - {Number} [options.height=0.0] The distance in meters between the circle and the ellipsoid surface. - {Number} [options.granularity=0.02] The angular distance between points on the circle in radians. - {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed. - {Number} [options.extrudedHeight=0.0] The distance in meters between the circle's extruded face and the ellipsoid surface. - {Number} [options.stRotation=0.0] The rotation of the texture coordinates, in radians. A positive rotation is counter-clockwise.
exception {DeveloperError} radius must be greater than zero. exception {DeveloperError} granularity must be greater than zero.
// Create a circle. var circle = new Cesium.CircleGeometry({ center : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883), radius : 100000.0 }); var geometry = Cesium.CircleGeometry.createGeometry(circle);
Packable
CircleGeometry.createGeometry