mark's banner

Monday, May 24, 2004

Reverse

Still on the traversal topic - I had a situation where I needed the elements within my traverse to have a bearing opposite to that being returned in the new elements. The reverse method works perfectly for arcs and lines flipping endpoints of my chainable elements.

Set chainableElements(index) = unsortedElts(startIndex - index)
chainableElements(index).Reverse

0 Comments:

Post a Comment

<< Home