I have this code which calculates the distance between two coordinates. The two functions are both within the same class.
However how do I call the function di
di
Since these are member functions, call it as a member function on the instance, self.
self
def isNear(self, p): self.distToPoint(p) ...