SharpNav.PolyMesh.ULeft C# (CSharp) Méthode

ULeft() private static méthode

Determines whether the vertices follow a certain order
private static ULeft ( PolyVertex a, PolyVertex b, PolyVertex c ) : bool
a PolyVertex Vertex A
b PolyVertex Vertex B
c PolyVertex Vertex C
Résultat bool
        private static bool ULeft(PolyVertex a, PolyVertex b, PolyVertex c)
        {
            return (b.X - a.X) * (c.Z - a.Z) -
                (c.X - a.X) * (b.Z - a.Z) < 0;
        }