Skip to content

KBE3D / KBCore / Cesium / IntersectionTests

IntersectionTests

Functions for computing the intersection between geometries such as rays, planes, triangles, and ellipsoids.

函数

函数描述
rayPlaneComputes the intersection of a ray and a plane.
rayTriangleParametricComputes the intersection of a ray and a triangle as a parametric distance along the input ray. The result is negative when the triangle is behind the ray.
rayTriangleComputes the intersection of a ray and a triangle as a Cartesian3 coordinate.
lineSegmentTriangleComputes the intersection of a line segment and a triangle.
raySphereComputes the intersection points of a ray with a sphere.
lineSegmentSphereComputes the intersection points of a line segment with a sphere.
rayEllipsoidComputes the intersection points of a ray with an ellipsoid.
rayAxisAlignedBoundingBoxComputes the intersection points of a ray with an axis-aligned bounding box. (axis-aligned in the same space as the ray)
grazingAltitudeLocationProvides the point along the ray which is nearest to the ellipsoid.
lineSegmentPlaneComputes the intersection of a line segment and a plane.
trianglePlaneIntersectionComputes the intersection of a triangle and a plane

KBE3D @3.0.0 Copyright © 2024-present KBE3D