alecjacobson / computer-graphics-kinematics

Computer Graphics Assignment about Kinematics
93 stars 31 forks source link

gradient calculation #7

Closed zhtdavis closed 5 years ago

zhtdavis commented 5 years ago

Besides calculating the Jacobian matrix, it seems we still need to calculate the dE/dX vector. Do we apply the same trick to get dE/dX? i.e. add 10e-7 to the position vector and get the difference between the new E value and the old E value then divide by 10e-7.

Thanks in advance!

lcapacitor commented 5 years ago

Since E(x) = ||x-q||^2, then E'(x) = 2(x-q) ?