def updateDoneItemsInfo(self, a=0, b=0): if self.gui.rl.current != 'Triangulate': return None if self.lat and self.lon: p = LatLon(self.lat, self.lon) for ni, i in enumerate(self.triaItems): if i.status == 'DONE': disMit = m2NM(p.distanceTo(i.trianPoint)) bear = p.bearingTo(i.trianPoint) self.wItems[ ni].tertiary_text = 'distance: {}[nm] at: {}` ({})'.format( round(disMit, 2), round(bear, 1), compassPoint(bear, 3)) else: self.wItems[ni].tertiary_text = ''
def _r2m(NM, name): return Radius(NM / m2NM(1), name=name, Error=WGRSError)
def _r2m(NM): return NM / m2NM(1)