I am trying to create an array of CGPoint from an NSArray whose each entry is NSPoint
NSArray *points = [_terrain getPathPoints];
CCLOG(@"Terrain Points=%@",points);
Output in log:
Terrain Points=(
"NSPoint: {-3.4324746, 70.220947}",
"NSPoint: {-3.9852712, 70.136444}",
"NSPoint: {-4.3119373, 70.058411}",
"NSPoint: {-4.4321384, 69.986282}",
"NSPoint: {-4.3655362, 69.919479}",
"NSPoint: {-4.131794, 69.857513}",
"NSPoint: {-3.7505748, 69.799774}"
)
getPathPoints is a method from a third party tool that I am using. This method returns an array of NSPoint. How can I create an array of CGPoint from the above data?