make calcdistance a staticmethod

(Boeing r1897)
This commit is contained in:
ahrenholz@gmail.com 2014-10-31 16:46:43 +00:00
parent bf6743a5d9
commit ddb8881388

View file

@ -425,7 +425,8 @@ class BasicRangeModel(WirelessModel):
self.sendlinkmsg(a, b)
def calcdistance(self, p1, p2):
@staticmethod
def calcdistance(p1, p2):
''' Calculate the distance between two three-dimensional points.
'''
a = p1[0] - p2[0]