POV-Ray : Newsgroups : povray.advanced-users : For the math minded people : Re: For the math minded people Server Time
30 Jul 2024 00:31:29 EDT (-0400)
  Re: For the math minded people  
From: How Camp
Date: 10 Jul 2000 14:07:58
Message: <396a10fe@news.povray.org>
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.