thermodynamic v1

This commit is contained in:
zomseffen 2020-11-08 10:20:23 +01:00
parent 5168061d1b
commit 41761b7b56
16 changed files with 1025 additions and 212 deletions

View file

@ -3,7 +3,7 @@ import numpy as np
def lookAt(eyeX, eyeY, eyeZ, cX, cY, cZ, upX, upY, upZ):
F = np.matrix([cX - eyeX, cY - eyeY, cZ - eyeZ])
F = np.matrix([eyeX - cX, eyeY -cY, eyeZ - cZ])
UP = np.matrix([upX, upY, upZ])
f = F / math.sqrt(np.sum(np.square(F)))
UP = UP / math.sqrt(np.sum(np.square(UP)))