IntersectionTests
Functions for computing the intersection between geometries such as rays, planes, triangles, and ellipsoids.
See also
Functions
Link copied to clipboard
Provides the point along the ray which is nearest to the ellipsoid.
Link copied to clipboard
fun lineSegmentPlane(endPoint0: Cartesian3, endPoint1: Cartesian3, plane: Plane, result: Cartesian3? = definedExternally): Cartesian3
Computes the intersection of a line segment and a plane.
Link copied to clipboard
fun lineSegmentSphere(p0: Cartesian3, p1: Cartesian3, sphere: BoundingSphere, result: Interval? = definedExternally): Interval
Computes the intersection points of a line segment with a sphere.
Link copied to clipboard
fun lineSegmentTriangle(v0: Cartesian3, v1: Cartesian3, p0: Cartesian3, p1: Cartesian3, p2: Cartesian3, cullBackFaces: Boolean? = definedExternally, result: Cartesian3? = definedExternally): Cartesian3
Computes the intersection of a line segment and a triangle.
Link copied to clipboard
Computes the intersection points of a ray with an ellipsoid.
Link copied to clipboard
Computes the intersection of a ray and a plane.
Link copied to clipboard
fun rayTriangle(ray: Ray, p0: Cartesian3, p1: Cartesian3, p2: Cartesian3, cullBackFaces: Boolean? = definedExternally, result: Cartesian3? = definedExternally): Cartesian3
Computes the intersection of a ray and a triangle as a Cartesian3 coordinate.
Link copied to clipboard
fun rayTriangleParametric(ray: Ray, p0: Cartesian3, p1: Cartesian3, p2: Cartesian3, cullBackFaces: Boolean? = definedExternally): Double
Computes 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.
Link copied to clipboard
Computes the intersection of a triangle and a plane