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

In "getEventFramesAndReset", it seems the 'rx' and 'ry' are always zero ? #14

Open
wtyytw0 opened this issue Jul 20, 2023 · 0 comments
Open

Comments

@wtyytw0
Copy link

wtyytw0 commented Jul 20, 2023

Hi,

In patch.h, the function "getEventFramesAndReset", line 109 ~ 119:
int x = e.x - center_.x + half_size_;
int y = e.y - center_.y + half_size_;
double rx = e.x - center_.x + half_size_ - x;
double ry = e.y - center_.y + half_size_ - y;
It seems the 'rx' and 'ry' are always zero, because you just calculate x as "e.x - center_.x + half_size_" and then calculate the subtraction of x and 'e.x - center_.x + half_size_' as 'rx'. How do I understand the variable 'rx' and 'ry'?

Thank you,
Taoyi

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