FloatExtensions.UnsetImaginary
Extension Method in FloatExtensions
Declaration
public static void UnsetImaginary(this ref float value, float newValue = 0F)Description
Sets the value to a new value if the value is an imaginary number (infinite or NaN).
Parameters
| value | The value to check. |
| newValue | The value to set if the original value is an imaginary number. |