Nez.Portable/Utils/Extensions/Vector2Ext.cs
/// <summary>
/// rounds and converts a Vector2 to a Point
/// </summary>
/// <returns>The point.</returns>
/// <param name="vec">Vec.</param>
rounds and converts a Vector2 to a Point
rounds and converts a Vector2 to a Point
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static Point roundToPoint(this Vector2 vec)
        {
            var roundedVec = vec.round();
            return new Point((int)roundedVec.X, (int)roundedVec.Y);
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static Point roundToPoint ( this Vector2 vec ) { var roundedVec = vec . round ( ) ; return new Point ( ( int ) roundedVec . X , ( int ) roundedVec . Y ) ; }
rounds and converts a Vector2 to a Point
rounds and converts a Vector2 to a Point
None
Vector2
this
vec
None