News for hackers. Stuff that matters.
Re:A geek meets the Ikea Lillabo Train Set by fhars on Tuesday January 05, 2010 @12:43PM (#1032792)
You might be able to speed it up considerably by adding

2a. Continue with next iteration unless the turning number of the sequence of curves is a whole number.

You add 1/8 to the turning number for each clockwise curve and subtract 1/8 for each CCW (for numerical stability you would rather add of subtract 1 and check for multiples of 8).

There are no comments on this comment yet.