directory name changed
This commit is contained in:
14
3d_renderer/vertex.py
Normal file
14
3d_renderer/vertex.py
Normal 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])
|
||||
Reference in New Issue
Block a user