Skip to content

lima/fix-unitTests - fix tube and trap unit tests

Guilherme Lima requested to merge lima/fix-unitTests into master

Fix bugs introduced when adding protection against divide-by-zero exceptions for tube and trap shapes.

The bottom line is that NonZero() is not good enough as it is now. It needs a second independent variable to use as the second argument of CopySign() to avoid sign bias, but adding extra argument introduces a performance penalty.

Merge request reports