SwiftfuncGeometryOS_geom_bvh_3d

closestPoint

OS_geom_bvh_3d.closestPoint(to: SIMD3<Double>, closestPointFunction: (UInt32, SIMD3<Double>) -> SIMD3<Double>) -> (point: SIMD3<Double>, distanceSquared: Double, primitive: UInt32)

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

param{}

  1. 0to:
  2. 1closestPointFunction:
    function(UInt32, SIMD3<Double>) -> SIMD3<Double>

result{}

tuple(point: SIMD3<Double>, distanceSquared: Double, primitive: UInt32)