Implemented a much nicer algorithm for getPoint (simple math FTW!)