|
I don't see that you're ever incrementing y or initializing x at the beginning of the method, and just by using back of the envelope calculations, it looks as if your x will march off way to the right.
You may want to sit with pencil and paper and work out your math a bit more here.
__________________
When posting code, please use code tags so that your code is readable. To do this, place the tag [code] before your block of code and [/code] after your block of code.
How to use Code Tags
|