SFML community forums
Help => General => Topic started by: Cyraxx on May 17, 2014, 02:20:59 pm
-
Hello!
I was wondering if there is a way to check intersection between a right angle triangle and a point or an other shape.
(or even a rectangle with 45° rotation)
-
Yes -- it strongly depends on the shape.
I suggest having a look at the Boost.Geometry library, it has this kind of functionality already implemented.
-
You should read up om basic trigonometry to help you answer those question.
Also take a look at this:
http://www.blackpawn.com/texts/pointinpoly/default.html