|
![](/i/fill.gif) |
Hi Christoph,
> But note:
>
>> sqrt( 0.5*x*x + y*y + z*z - 1)
>
>
> tries to calculate the square root of a negative number for some values
> of x,y and z, the result of this is not defined (and can vary from
> platform to platform - i even get different results with different
> builds here).
>
> You almost certainly want:
>
> sqrt( 0.5*x*x + y*y + z*z ) - 1
Thanks a lot, that solves the problem!
Friedrich
Post a reply to this message
|
![](/i/fill.gif) |