Code: Select all
from typing import Self
class Vect:
x: float
y: float
@staticmethod
def angle(v1: Self, v2: Self):
return math.acos(v1 * v2 / v1.magnitude() / v2.magnitude())
Code: Select all
from typing import Self
class Vect:
x: float
y: float
@staticmethod
def angle(v1: Self, v2: Self):
return math.acos(v1 * v2 / v1.magnitude() / v2.magnitude())