Nez.Portable/Utils/Extensions/Vector2Ext.cs
/// <summary>
/// returns the angle between left and right with self being the center point in degrees
/// </summary>
/// <param name="self">Self.</param>
/// <param name="left">V left.</param>
/// <param name="right">V right.</param>
returns the angle between left and right with self being the center point in degrees
returns the angle between left and right with self being the center point in degrees
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static float angleBetween(this Vector2 self, Vector2 left, Vector2 right)
        {
            var one = left - self;
            var two = right - self;
            return angle(one, two);
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static float angleBetween ( this Vector2 self , Vector2 left , Vector2 right ) { var one = left - self ; var two = right - self ; return angle ( one , two ) ; }
returns the angle between left and right with self being the center point in degrees
returns the angle between left and right with self being the center point in degrees
Vector2
this
left
Vector2
None
right
Vector2
None
self
None