This commit is contained in:
2024-04-09 17:24:02 +02:00
Unverified
parent 8f9ef3f4ff
commit 8766725953
8 changed files with 156 additions and 71 deletions

14
src/vertex.py Normal file
View File

@@ -0,0 +1,14 @@
import numpy as np
class Vertex:
x: int
y: int
z: int
def __init__(self, x: int, y: int, z: int):
self.x = x
self.y = y
self.z = z
def to_matrix(self) -> np.matrix:
return np.matrix([self.x, self.y, self.z])