Uniform distance between points

Posted by Reonarudo on Stack Overflow See other posts from Stack Overflow or by Reonarudo
Published on 2010-06-08T17:47:35Z Indexed on 2010/06/08 19:02 UTC
Read the original article Hit count: 166

Filed under:
|
|
|

Hello, How could I, having a path defined by several points that are not in a uniform distance from each other, redefine along the same path the same number of points but with a uniform distance. I'm trying to do this in Objective-C with NSArrays of CGPoints but so far I haven't had any luck with this. Thank you for any help.

EDIT

I was wondering if it would help to reduce the number of points, like when detecting if 3 points are collinear we could remove the middle one, but I'm not sure that would help.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about math