Cleaned up the proof of concept code to be more object oriented. Functionally, some mouse and key bindings were added to make the demo a bit more interactive.

This commit is contained in:
2020-07-14 00:56:25 -05:00
parent 5f83619244
commit b318076f05
3 changed files with 156 additions and 75 deletions
+17
View File
@@ -0,0 +1,17 @@
class Vector4d:
def __init__(self, x, y, z, w):
self.x = x
self.y = y
self.z = z
self.w = w
class Vector3d:
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z
class Vector2d:
def __init__(self, x, y):
self.x = x
self.y = y