SyntaxFix
Write A Post
Hire A Developer
Questions
Since these are member functions, call it as a member function on the instance, self.
self
def isNear(self, p): self.distToPoint(p) ...