Compare commits

..

No commits in common. "9e90b02f796b5347ed2499bfe5b770b8ca96d12c" and "1cb45281657aef192026d815b1beeb5dedfc0731" have entirely different histories.

2 changed files with 2 additions and 11 deletions

11
gyro.py
View File

@ -100,17 +100,6 @@ class GyroVector:
cAdd, cGyr = MobiusAddGyr(gA.cPos, gB.cPos) cAdd, cGyr = MobiusAddGyr(gA.cPos, gB.cPos)
return GyroVector(cAdd, gA.cRot * gB.cRot * cGyr) return GyroVector(cAdd, gA.cRot * gB.cRot * cGyr)
def __iadd__(self, gA):
cAdd, cGyr = MobiusAddGyr(self.cPos, gA.cPos)
self.cPos = cAdd
self.cRot = self.cRot * gA.cRot * cGyr
def __isub__(self, gA):
ngA = -gA
cAdd, cGyr = MobiusAddGyr(self.cPos, ngA.cPos)
self.cPos = cAdd
self.cRot = self.cRot * ngA.cRot * cGyr
def __neg__(self): def __neg__(self):
return GyroVector(-(self.cRot * self.cPos), 1/self.cRot) return GyroVector(-(self.cRot * self.cPos), 1/self.cRot)

View File

@ -1,6 +1,8 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from numba import jit
from math import copysign, pi, acos from math import copysign, pi, acos
from time import time
import sys import sys
import pygame import pygame