Appearance
KBE3D / KBCore / Cesium / EllipseOutlineGeometry
类: EllipseOutlineGeometry
A description of the outline of an ellipse on an ellipsoid.
示例
ts
const ellipse = new Cesium.EllipseOutlineGeometry({
center : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
semiMajorAxis : 500000.0,
semiMinorAxis : 300000.0,
rotation : Cesium.Math.toRadians(60.0)
});
const geometry = Cesium.EllipseOutlineGeometry.createGeometry(ellipse);参数
Object with the following properties:
参数
The ellipse's center point in the fixed frame.
参数
The length of the ellipse's semi-major axis in meters.
参数
The length of the ellipse's semi-minor axis in meters.
参数
The ellipsoid the ellipse will be on.
参数
The distance in meters between the ellipse and the ellipsoid surface.
参数
The distance in meters between the ellipse's extruded face and the ellipsoid surface.
参数
The angle from north (counter-clockwise) in radians.
参数
The angular distance between points on the ellipse in radians.
参数
Number of lines to draw between the top and bottom surface of an extruded ellipse.
属性
packedLength
staticpackedLength:number
The number of elements used to pack the object into an array.
方法
pack()
staticpack(value:EllipseOutlineGeometry,array:number[],startingIndex?:number):number[]
Stores the provided instance into the provided array.
参数
value
EllipseOutlineGeometry
The value to pack.
array
number[]
The array to pack into.
startingIndex?
number
The index into the array at which to start packing the elements.
返回
number[]
The array that was packed into
unpack()
staticunpack(array:number[],startingIndex?:number,result?:EllipseOutlineGeometry):EllipseOutlineGeometry
Retrieves an instance from a packed array.
参数
array
number[]
The packed array.
startingIndex?
number
The starting index of the element to be unpacked.
result?
EllipseOutlineGeometry
The object into which to store the result.
返回
EllipseOutlineGeometry
The modified result parameter or a new EllipseOutlineGeometry instance if one was not provided.
createGeometry()
staticcreateGeometry(ellipseGeometry:EllipseOutlineGeometry):Geometry|undefined
Computes the geometric representation of an outline of an ellipse on an ellipsoid, including its vertices, indices, and a bounding sphere.
参数
ellipseGeometry
EllipseOutlineGeometry
A description of the ellipse.
返回
Geometry | undefined
The computed vertices and indices.
构造函数
构造函数
new EllipseOutlineGeometry(
options: {center:Cartesian3;semiMajorAxis:number;semiMinorAxis:number;ellipsoid?:Ellipsoid;height?:number;extrudedHeight?:number;rotation?:number;granularity?:number;numberOfVerticalLines?:number; }):EllipseOutlineGeometry
参数
options
center
semiMajorAxis
number
semiMinorAxis
number
ellipsoid?
height?
number
extrudedHeight?
number
rotation?
number
granularity?
number
numberOfVerticalLines?
number
返回
EllipseOutlineGeometry
