POV-Ray : Newsgroups : povray.advanced-users : For the math minded people : Re: For the math minded people Server Time
30 Jul 2024 06:21:22 EDT (-0400)
  Re: For the math minded people  
From: Fabien Hénon
Date: 11 Jul 2000 16:50:45
Message: <396B880D.1D41BDF7@club-internet.fr>
Thanks for all your answers.

I'll use this one on Excel.

Cheers.

HF



> The scalar distance between two points can be found by:
>
> sqrt( (x2 - x1)^2 + (y2 - y1)^2 + (z2 - z1)^2 )
>
> where <x1, y1, z1> is your first point, and <x2, y2, z2> is your second
> point.
>
> So, in your example:
>
> sqrt( (7 - 2)^2 + (-8 - 3)^2 + (3 - 4)^2 )
>
> = sqrt( 5^2 + (-5)^2 + (-1)^2 )
>
> = sqrt( 25 + 25 + 1)
>
> = sqrt(51)
>
> = 7.14 (approximately)
>
> - How
>

> news:396A0D89.699D3985@club-internet.fr...
> > Hi you all.
> >
> > To make a smooth animation, I'd like to measure the distance between two
> > points ( ie : distance between <2,3,4> and <7,-8,3>)
> >
> > Does anyone know the formulae to calculate it?
> >
> > Thanks
> >

> >
> >


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.