Added function pointIsOnRay.