Skip to content

KBE3D / KBCore / Cesium / IntersectionTests / lineSegmentSphere

函数: lineSegmentSphere()

lineSegmentSphere(p0: Cartesian3, p1: Cartesian3, sphere: BoundingSphere, result?: Interval): Interval

Computes the intersection points of a line segment with a sphere.

参数

p0

Cartesian3

An end point of the line segment.

p1

Cartesian3

The other end point of the line segment.

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