make calcdistance a staticmethod

(Boeing r1897)
This commit is contained in:
ahrenholz 2014-10-31 16:46:43 +00:00
parent 267c49dfab
commit f5e3461903

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]