Skip to content

KBE3D / KBCore / Cesium / FrustumGeometry

类: FrustumGeometry

Describes a frustum at the given the origin and orientation.

参数

Object with the following properties:

参数

The frustum.

参数

The origin of the frustum.

参数

The orientation of the frustum.

参数

The vertex attributes to be computed.

属性

packedLength

packedLength: number

The number of elements used to pack the object into an array.

方法

pack()

static pack(value: FrustumGeometry, array: number[], startingIndex?: number): number[]

Stores the provided instance into the provided array.

参数

value

FrustumGeometry

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()

static unpack(array: number[], startingIndex?: number, result?: FrustumGeometry): void

Retrieves an instance from a packed array.

参数

array

number[]

The packed array.

startingIndex?

number

The starting index of the element to be unpacked.

result?

FrustumGeometry

The object into which to store the result.

返回

void


createGeometry()

static createGeometry(frustumGeometry: FrustumGeometry): Geometry | undefined

Computes the geometric representation of a frustum, including its vertices, indices, and a bounding sphere.

参数

frustumGeometry

FrustumGeometry

A description of the frustum.

返回

Geometry | undefined

The computed vertices and indices.

构造函数

构造函数

new FrustumGeometry(options: { frustum: PerspectiveFrustum | OrthographicFrustum; origin: Cartesian3; orientation: Quaternion; vertexFormat?: VertexFormat; }): FrustumGeometry

参数

options
frustum

PerspectiveFrustum | OrthographicFrustum

origin

Cartesian3

orientation

Quaternion

vertexFormat?

VertexFormat

返回

FrustumGeometry

KBE3D @3.0.0 Copyright © 2024-present KBE3D