Nez.Portable/Utils/Extensions/Vector2Ext.cs
/// <summary>
/// converts a Vector2 to a Vector3 with a 0 z-position
/// </summary>
/// <returns>The vector3.</returns>
/// <param name="vec">Vec.</param>
converts a Vector2 to a Vector3 with a 0 z-position
converts a Vector2 to a Vector3 with a 0 z - position
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static Vector3 toVector3(this Vector2 vec)
        {
            return new Vector3(vec, 0);
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static Vector3 toVector3 ( this Vector2 vec ) { return new Vector3 ( vec , 0 ) ; }
converts a Vector2 to a Vector3 with a 0 z-position
converts a Vector2 to a Vector3 with a 0 z - position
None
Vector2
this
vec
None