Implemented getting potential of point.