Files
3DRenderer/3d_renderer/vertex.py

14 lines
262 B
Python
Raw Normal View History

2024-04-09 17:24:02 +02:00
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])