SwiftfuncGeometrygeom_cubic_bezier_2f
approximateClosestPoint
geom_cubic_bezier_2f.approximateClosestPoint(to: SIMD2<Float>, withSampleCount: Int) -> (point: SIMD2<Float>, closestT: Float, squaredDistance: Float)
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
param{}
- 0to:structSwift.SIMD2
- 1withSampleCount:structSwift.Int
result{}
tuple
(point: SIMD2<Float>, closestT: Float, squaredDistance: Float)