J
John
Hi there,
I need to create a rectangle between two points so that I can check what
is inside it using Contains(). The problem I am having is how to make the
rectangle be able to cope with the angle between the two points, see the
image in the link for what I mean.
http://homepage.ntlworld.com/andrew.baldock/bloodbowl/select.png
I am not interested in displaying anything in the rectangle, I just need
it for Contains(). The start and end points can be anywhere on the grid
and the rectangle is always the same thickness.
Any help would be appreciated.
Cheers,
John
I need to create a rectangle between two points so that I can check what
is inside it using Contains(). The problem I am having is how to make the
rectangle be able to cope with the angle between the two points, see the
image in the link for what I mean.
http://homepage.ntlworld.com/andrew.baldock/bloodbowl/select.png
I am not interested in displaying anything in the rectangle, I just need
it for Contains(). The start and end points can be anywhere on the grid
and the rectangle is always the same thickness.
Any help would be appreciated.
Cheers,
John