|
![](/i/fill.gif) |
clipka <ano### [at] anonymous org> wrote:
> Am 05.01.2014 02:23, schrieb Louis:
> > Doctor John <j.g### [at] gmail com> wrote:
> >> On 28/12/13 16:39, Louis wrote:
> > Am I misunderstanding vrotate?
>
> No, but you're misunderstanding distance computations in 3D space ;-)
>
> You probably thought that with distance computations in 2D space using
> squares and square roots, 3D space would call for cubes and cubic roots,
> but this is not the case at all; the proper formula should indeed be:
>
> #declare length = sqrt(pow(test.x,2)+pow(test.y,2)+pow(test.z,2));
>
> or, even simpler yet (and less prone to errors ;-)):
>
> #declare length = vlength(test);
Thanks,
Finally found the error, using coordinates as positions somewhere.
I should have been able to reason squares instead of cubes, guess Pythagoras
used some more time to think about it than I did :-)
Cheers,
Louis
Post a reply to this message
|
![](/i/fill.gif) |