Nez.Portable/Utils/Extensions/Vector2Ext.cs
/// <summary>
/// returns the vector perpendicular to the passed in vectors
/// </summary>
/// <param name="first">First.</param>
/// <param name="second">Second.</param>
returns the vector perpendicular to the passed in vectors
returns the vector perpendicular to the passed in vectors
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static Vector2 perpendicular(ref Vector2 first, ref Vector2 second)
        {
            return new Vector2(-1f * (second.Y - first.Y), second.X - first.X);
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static Vector2 perpendicular ( ref Vector2 first , ref Vector2 second ) { return new Vector2 ( - 1f * ( second . Y - first . Y ) , second . X - first . X ) ; }
returns the vector perpendicular to the passed in vectors
returns the vector perpendicular to the passed in vectors
Vector2
ref
first
None
second
None