Added InTriangle and TPAFromTriangle