I have a float2 struct that works perfectly:
class float2(Structure):
_fields_ = [('x',c_float),('y',c_float)]```
How can I implement this method of GKPath:
- (instancetype)initWithPoints:(vector_float2 *)points
count:(size_t)count
radius:(float)radius
cyclical:(BOOL)cyclical
Specifically, the problem is when I pass array of float2 to points parameters, app crashes.
Reference:
GKPath initWithPoints:count:radius:cyclical: