edited getPoint to use built-in pvector methods