The problem can be solved by replacing the expression "if (temp.IsZero()) return...
Trigonometric functions failure