Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate E value #6

Open
xuyonglai opened this issue Dec 17, 2020 · 0 comments
Open

Calculate E value #6

xuyonglai opened this issue Dec 17, 2020 · 0 comments

Comments

@xuyonglai
Copy link

xuyonglai commented Dec 17, 2020

I find delta_pos is not used, Is that right? why?
**float delta_E = B[3] - A[3];
float delta_pos = length(v2f(B) - v2f(A));

float grad = 0.5f * grad_z_a + 0.5f * grad_z_b;
// float grad = max( grad_z_a , grad_z_b );

float new_e = delta_E / grad;
total_e += new_e;**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant