This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Determines whether or not a set of three points is in counter-clockwise order. | |
| private bool TriangleIsCCW(Vector2f a, Vector2f b, Vector2f c) { | |
| float det = ((a.x - c.x) * (b.y - c.y)) - ((a.y - c.y) * (b.x - c.x)); | |
| return (det > 0); | |
| } |