The `cosine_from_sine` function can return `-0.0` if called with UnitNegRange(1.0), -1.0. The code should NOT use -ve zero.