#Projection & Rotation
#Projection Matrix
projectionMatrix = np.matrix([
[1, 0, 0],
[0, 1, 0],
])
#Rotation Matrices
def Rx(angle):
return np.matrix([
[1, 0, 0],
[0, math.cos(angle), -math.sin(angle)],
[0, math.sin(angle), math.cos(angle)]
])
def Ry(angle):
return np.matrix([
[math.cos(angle), 0, math.sin(angle)],
[0, 1, 0],
[-math.sin(angle), 0, math.cos(angle)]
])
def Rz(angle):
return np.matrix([
[math.cos(angle), -math.sin(angle), 0],
[math.sin(angle), math.cos(angle), 0],
[0, 0, 1]
])
#Also, you can use the matrix multiplication operator @, in case you didnt know.