thermodynamic v1
This commit is contained in:
parent
5168061d1b
commit
41761b7b56
16 changed files with 1025 additions and 212 deletions
MatrixStuff
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue