Add point in triangle test
Use Primitive trait instead of being overly generic