FloatExtensions.UnsetInfinite

Extension Method in FloatExtensions

Declaration

public static void UnsetInfinite(this ref float value, float newValue = 0F)

Description

Sets the value to a new value if the value is an infinite number.

Parameters

valueThe value to check.
newValueThe value to set if the original value is infinite.