Hello,
I'd like to perform some math on a fairly large number of CGPoint instances stored in an array so I thought I'd look into using Accelerate and start by conforming CGPoint to AccelerateBuffer, followed by extending Array to conform as well.
My problem is that I don't understand what to do with the requirement
How am I supposed to implement this? Are there any code examples somewhere that I can look into?
Many thanks.
I'd like to perform some math on a fairly large number of CGPoint instances stored in an array so I thought I'd look into using Accelerate and start by conforming CGPoint to AccelerateBuffer, followed by extending Array to conform as well.
My problem is that I don't understand what to do with the requirement
Code Block Swift public func withUnsafeBufferPointer<R>(_ body: (UnsafeBufferPointer<CGFloat>) throws -> R) rethrows -> R
How am I supposed to implement this? Are there any code examples somewhere that I can look into?
Many thanks.