You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: