Skip to content

KBE3D / KBCore / Cesium / IntersectionTests / raySphere

函数: raySphere()

raySphere(ray: Ray, sphere: BoundingSphere, result?: Interval): Interval

Computes the intersection points of a ray with a sphere.

参数

ray

Ray

The ray.

sphere

BoundingSphere

The sphere.

result?

Interval

The result onto which to store the result.

返回

Interval

The interval containing scalar points along the ray or undefined if there are no intersections.

KBE3D @3.0.0 Copyright © 2024-present KBE3D