We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if outcode & TOP != 0 { // 这里是不是应该为 p.x = pt1.x + (pt2.x - pt1.x) * (rect_max.y - pt1.y) / (pt2.y - pt1.y); p.x = p1.x + (pt2.x - pt1.x) * (rect_max.y - pt1.y) / (pt2.y - pt1.y); p.y = rect_max.y; } else if outcode & BOTTOM != 0 { // 这里是不是应该为 p.x = pt1.x + (pt2.x - pt1.x) * (rect_min.y - pt1.y) / (pt2.y - pt1.y); p.x = p1.x + (pt2.x - pt1.x) * (rect_min.y - pt1.y) / (pt2.y - pt1.y); p.y = rect_min.y; } else if outcode & RIGHT != 0 { p.y = pt1.y + (pt2.y - pt1.y) * (rect_max.x - pt1.x) / (pt2.x - pt1.x); p.x = rect_max.x; } else if outcode & LEFT != 0 { p.y = pt1.y + (pt2.y - pt1.y) * (rect_min.x - pt1.x) / (pt2.x - pt1.x); p.x = rect_min.x; }
The text was updated successfully, but these errors were encountered:
是的,笔误了,感谢
Sorry, something went wrong.
(fix): #2 #3 bug fixed
0dcf50d
No branches or pull requests
The text was updated successfully, but these errors were encountered: