Nez.Portable/Utils/Extensions/Vector2Ext.cs
/// <summary>
/// flips the x/y values and inverts the y to get the perpendicular
/// </summary>
/// <param name="original">Original.</param>
flips the x/y values and inverts the y to get the perpendicular
flips the x / y values and inverts the y to get the perpendicular
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static Vector2 perpendicular(Vector2 original)
        {
            return new Vector2(-original.Y, original.X);
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static Vector2 perpendicular ( Vector2 original ) { return new Vector2 ( - original . Y , original . X ) ; }
flips the x/y values and inverts the y to get the perpendicular
flips the x / y values and inverts the y to get the perpendicular
original
Vector2
None