|
|
>>Um... yeah, OK... so why does atan2(0, 0) give we a fatal parse error?
>
> The arguments to atan2 are the rise (A) and run (B) of a tangent line for
> which you want to know the angle. If the line runs (B != 0) but does not
> rise (A = 0), you have a horizontal line. If the line rises (A != 0) but
> does not run (B = 0), you have a vertical line. But if the line does not
> rise (A = 0) or run (B = 0), what do you have? The line does not go
> anywhere, so the angle is undefined.
The angle is definitely undefined - but I would be quite happy for POV
to return *any* angle to me... Now I have to figure out how to get round
this parse error. :-/
(The number that results is being fed into a rotate statement, so in the
case of both numbers being zero, whatever rotation ends up happening
won't make any difference to the final image...)
Post a reply to this message
|
|