Nez.Portable/Utils/Extensions/Vector2Ext.cs
/// <summary>
/// checks if a triangle is CCW or CW
/// </summary>
/// <returns><c>true</c>, if triangle ccw was ised, <c>false</c> otherwise.</returns>
/// <param name="a">The alpha component.</param>
/// <param name="center">Center.</param>
/// <param name="c">C.</param>
checks if a triangle is CCW or CW
checks if a triangle is CCW or CW
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static bool isTriangleCCW(Vector2 a, Vector2 center, Vector2 c)
        {
            return cross(center - a, c - center) < 0;
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static bool isTriangleCCW ( Vector2 a , Vector2 center , Vector2 c ) { return cross ( center - a , c - center ) < 0 ; }
checks if a triangle is CCW or CW
checks if a triangle is CCW or CW
None
a
Vector2
The alpha component.
The alpha component .
center
Vector2
None
c
Vector2
None