Hello,
Could I please ask how to include the simd framework function simd_incircle(::::)?
I have imported simd but cannot find this function, linked: https://developer.apple.com/documentation/accelerate/1646495-simd_incircle
Details: Swift 5.2 Xcode 13.0
Thank you
I did the following test, with Xcode 13.2.1. I had not Xcode 13.0 available to repeat the test with.
import simd
In viewDidLoad, added:
let result = simd_incircle(simd_float2(repeating: 1), simd_float2(repeating: 2), simd_float2(repeating: 3), simd_float2(repeating: 4))
print("Result", result)
.
It compiles and runs run and yields:
- Result 0.0
Note I was expecting a Bool according to doc !?!?!?