Appearance
KBE3D / KBCore / Cesium / RectangleOutlineGeometry
类: RectangleOutlineGeometry
A description of the outline of a a cartographic rectangle on an ellipsoid centered at the origin.
示例
ts
const rectangle = new Cesium.RectangleOutlineGeometry({
ellipsoid : Cesium.Ellipsoid.WGS84,
rectangle : Cesium.Rectangle.fromDegrees(-80.0, 39.0, -74.0, 42.0),
height : 10000.0
});
const geometry = Cesium.RectangleOutlineGeometry.createGeometry(rectangle);参数
Object with the following properties:
参数
A cartographic rectangle with north, south, east and west properties in radians.
参数
The ellipsoid on which the rectangle lies.
参数
The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
参数
The distance in meters between the rectangle and the ellipsoid surface.
参数
The rotation of the rectangle, in radians. A positive rotation is counter-clockwise.
参数
The distance in meters between the rectangle's extruded face and the ellipsoid surface.
属性
packedLength
staticpackedLength:number
The number of elements used to pack the object into an array.
方法
pack()
staticpack(value:RectangleOutlineGeometry,array:number[],startingIndex?:number):number[]
Stores the provided instance into the provided array.
参数
value
RectangleOutlineGeometry
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?:RectangleOutlineGeometry):RectangleOutlineGeometry
Retrieves an instance from a packed array.
参数
array
number[]
The packed array.
startingIndex?
number
The starting index of the element to be unpacked.
result?
RectangleOutlineGeometry
The object into which to store the result.
返回
RectangleOutlineGeometry
The modified result parameter or a new RectangleOutlineGeometry instance if one was not provided.
createGeometry()
staticcreateGeometry(rectangleGeometry:RectangleOutlineGeometry):Geometry|undefined
Computes the geometric representation of an outline of a rectangle, including its vertices, indices, and a bounding sphere.
参数
rectangleGeometry
RectangleOutlineGeometry
A description of the rectangle outline.
返回
Geometry | undefined
The computed vertices and indices.
构造函数
构造函数
new RectangleOutlineGeometry(
options: {rectangle:Rectangle;ellipsoid?:Ellipsoid;granularity?:number;height?:number;rotation?:number;extrudedHeight?:number; }):RectangleOutlineGeometry
参数
options
rectangle
ellipsoid?
granularity?
number
height?
number
rotation?
number
extrudedHeight?
number
返回
RectangleOutlineGeometry
