Geometery/Trig Help!

BlitzMax Forums/BlitzMax Programming/Geometery/Trig Help!

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Er, the final point would be the point I calculated above (5,5) minus the center point (1, 5), so it'd be (4, 0). While that *is* where the line would intersect the top, in this case a 45 degree angle hits the side first.

I think if you took your code above but changed the condition tests to the following format

[code]
Case ((Angle >= 270+ angle_a) AND (Angle < angle_a)) OR ((Angle >= 90+angle_a) AND (Angle < 180+angle_a))
[code]

using the angle to corner method I detailed above, the code would work correctly.