SwiftfuncGeometryOS_geom_bvh_2f

closestPoint

OS_geom_bvh_2f.closestPoint(to: SIMD2<Float>, closestPointFunction: (UInt32, SIMD2<Float>) -> SIMD2<Float>) -> (point: SIMD2<Float>, distanceSquared: Float, 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, SIMD2<Float>) -> SIMD2<Float>

result{}

tuple(point: SIMD2<Float>, distanceSquared: Float, primitive: UInt32)