开发者

Intersection of a 2D segment with a rectangle

开发者 https://www.devze.com 2023-04-03 20:07 出处:网络
I using C# and XNA. I need an algorithm in any language to obtain the border intersection point(s) of a rectangle with a 2d segment.

I using C# and XNA. I need an algorithm in any language to obtain the border intersection point(s) of a rectangle with a 2d segment.

I've been l开发者_StackOverflowooking for an answer for my question for over 3 hours already and couldn't find a solution that works.

Can anyone help me please?

Thanks a lot.


You can find an example for a line segment intersection with an aabb box here.

Or the same question as your question here

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号