Skip to content

KBE3D / KBCore / Cesium / computePickingDrawingBufferRectangle

函数: computePickingDrawingBufferRectangle()

computePickingDrawingBufferRectangle(drawingBufferHeight: number, position: Cartesian2, width: number | undefined, height: number | undefined, result: BoundingRectangle): BoundingRectangle

Compute the rectangle that describes the part of the drawing buffer that is relevant for picking.

参数

drawingBufferHeight

number

The height of the drawing buffer

position

Cartesian2

The position inside the drawing buffer

width

The width of the rectangle, assumed to be an odd integer number, default : 3.0

number | undefined

height

The height of the rectangle. If unspecified, height will default to the value of <code>width</code>

number | undefined

result

BoundingRectangle

The result rectangle

返回

BoundingRectangle

The result rectangle

KBE3D @3.0.0 Copyright © 2024-present KBE3D