Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Right angle triangle  (Read 958 times)

0 Members and 1 Guest are viewing this topic.

Cyraxx

  • Newbie
  • *
  • Posts: 8
    • View Profile
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)

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
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