You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
382 B
14 lines
382 B
#coding:utf-8
|
|
|
|
class Position:
|
|
def __init__(self, latitude: float, longitude: float):
|
|
self.latitude = latitude
|
|
self.longitude = longitude
|
|
|
|
def __str__(self):
|
|
return f"[{self.latitude}; {self.longitude}]"
|
|
def is_northiest_than(self, position):
|
|
if position == None:
|
|
return True
|
|
return self.latitude >= position.latitude
|