other/Scripts/Gameplay/Services/hwmMath.cs
/// <summary>
/// Gets the reciprocal of this vector, avoiding division by zero.
/// Zero components are set to float.MaxValue.
/// </summary>
/// <param name="vec"></param>
/// <returns>Reciprocal of this vector.</returns>
Gets the reciprocal of this vector, avoiding division by zero.
Zero components are set to float.MaxValue.
Gets the reciprocal of this vector avoiding division by zero . Zero components are set to float . MaxValue .
public static Vector2 Reciprocal(Vector2 vec)
    {
        return new Vector2(vec.x != 0.0f ? 1.0f / vec.x : float.MaxValue
            , vec.y != 0.0f ? 1.0f / vec.y : float.MaxValue);
    }
public static Vector2 Reciprocal ( Vector2 vec ) { return new Vector2 ( vec . x != 0.0f ? 1.0f / vec . x : float . MaxValue , vec . y != 0.0f ? 1.0f / vec . y : float . MaxValue ) ; }
Gets the reciprocal of this vector, avoiding division by zero.
Gets the reciprocal of this vector avoiding division by zero .
Reciprocal of this vector.
Reciprocal of this vector .
vec
Vector2
None