Skip to content

Instantly share code, notes, and snippets.

View matthewraaff's full-sized avatar
🖥️

Matthew Raaff matthewraaff

🖥️
View GitHub Profile
@matthewraaff
matthewraaff / haversine.py
Created December 11, 2023 14:31
Haversine function written in Python 3.12
from math import radians, sin, cos, tan, sqrt, atan2
RADIUS = 6356.752
class Coordinate():
def __init__(self, point_a: float, point_b: float):
self.a = point_a
self.b = point_b
def __repr__(self) -> str: