fixed wrong call of projectInTriangle()