Nez.Portable/Physics/Shapes/RealtimeCollisions.cs
/// <summary>
/// support function that returns the rectangle vert with index n
/// </summary>
/// <param name="b">The blue component.</param>
/// <param name="n">N.</param>
support function that returns the rectangle vert with index n
support function that returns the rectangle vert with index n
static Vector2 corner(Rectangle b, int n)
        {
            var p = new Vector2();
            p.X = (n & 1) == 0 ? b.Right : b.Left;
            p.Y = (n & 1) == 0 ? b.Bottom : b.Top;
            return p;
        }
static Vector2 corner ( Rectangle b , int n ) { var p = new Vector2 ( ) ; p . X = ( n & 1 ) == 0 ? b . Right : b . Left ; p . Y = ( n & 1 ) == 0 ? b . Bottom : b . Top ; return p ; }
support function that returns the rectangle vert with index n
support function that returns the rectangle vert with index n
b
Rectangle
The blue component.
The blue component .
n
int
None