Model definitions
Point in triangle algorithm