Nez.Portable/Utils/Extensions/Vector2Ext.cs
/// <summary>
/// rounds the x and y values
/// </summary>
/// <param name="vec">Vec.</param>
rounds the x and y values
rounds the x and y values
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static Vector2 round(this Vector2 vec)
        {
            return new Vector2(Mathf.round(vec.X), Mathf.round(vec.Y));
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static Vector2 round ( this Vector2 vec ) { return new Vector2 ( Mathf . round ( vec . X ) , Mathf . round ( vec . Y ) ) ; }
rounds the x and y values
rounds the x and y values
Vector2
this
vec
None