Did some math for point-in-triangle checking. Analytic geometry FTW\!