make calcdistance a staticmethod
(Boeing r1897)
This commit is contained in:
parent
267c49dfab
commit
f5e3461903
1 changed files with 2 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue