Skip to content

Can you explain what does def isClose(self, p1, p2) function is doing.? #1

@abhinavrawat27

Description

@abhinavrawat27

Can you explain how you came up with this logic in isClose function:

def isClose(self, p1, p2):
dist = self.findDistance(p1, p2)
calibration = (p1[1] + p2[1]) / 2
if 0 < dist < 0.25 * calibration:
return True
else:
return False

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions