Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
Right angle triangle
Print
Pages: [
1
]
Author
Topic: Right angle triangle (Read 1163 times)
0 Members and 1 Guest are viewing this topic.
Cyraxx
Newbie
Posts: 8
Right angle triangle
«
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)
Logged
Nexus
SFML Team
Hero Member
Posts: 6287
Thor Developer
Re: Right angle triangle
«
Reply #1 on:
May 17, 2014, 03:32:54 pm »
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.
Logged
Zloxx II
: action platformer
Thor Library
: particle systems, animations, dot products, ...
SFML Game Development
:
Jesper Juhl
Hero Member
Posts: 1405
Re: Right angle triangle
«
Reply #2 on:
May 17, 2014, 03:34:43 pm »
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
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
Right angle triangle