An error again, which isn't particularly easy to discipher (IMHO), but a few more plays with the variables. And I'm guessing what happend was the center of the vector got offset. Oh, I guess it might help to explain what I'm trying to do. I want those lines to be at the center of the OctoGon. And then, I want to clip them on either side (make them shorter). So, since I'm not in the center, I know something went wrong.

CP = Center Point

Perimeter = Point on OctoGon perimeter

This page differs from the last only in that this one is CP + Perimeter to make the Ray

Previous page was CP - Perimeter

Though, of course, I'm pretty sure, I made an error and reassigned the Center Point (CP) at this point.


Previous      Brett Code Index    Next in Series

OctoWars Project
Copyright © 2013 Brett Paufler