normalizedOrElse

inline fun normalizedOrElse(defaultValue: ComplexF): ComplexF

Returns a normalized copy of this complex number if this complex number magnitude is large enough to safely normalize. Else returns defaultValue.

Parameters

defaultValue

the returned value if this complex number could not be safely normalized.


inline fun normalizedOrElse(defaultValue: () -> ComplexF): ComplexF

Returns a normalized copy of this complex number if this complex number magnitude is large enough to safely normalize. Else returns the result of calling the defaultValue function.

Parameters

defaultValue

the function whose result is returned if the complex number could not be safely normalized.