Galdiuz
Creator of Photon Command
- Reaction score
- 98
I got 4 points, point A, B, C, and D, like this:
.........A
......../..\
......./.D.\
....../......\
.....B-----C
How would I do to check if point D is in the triangle formed by ABC? I'm gonna use this for a spell that damages units in the triangle formed by 3 units.
I've been trying to figure this out for 4 hour and I haven't found a solution.
.........A
......../..\
......./.D.\
....../......\
.....B-----C
How would I do to check if point D is in the triangle formed by ABC? I'm gonna use this for a spell that damages units in the triangle formed by 3 units.
I've been trying to figure this out for 4 hour and I haven't found a solution.