![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Come on, it's povray. There's the easy way:
vlength(<2,3,4>-<7-8,3>)
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Mon, 10 Jul 2000 16:46:26 -0400, Andrea Ryan wrote:
>Does the formula give the "hypotenuse" of a shape that looks like a doorstop or
>is it a different shape?
It gives the length of the diagonal of the largest rectangular face on a
solid that looks like a doorstop (assuming you mean a wedge-shaped doorstop.)
That happens to also be the straight line that connects the two points.
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 10 Jul 2000 17:09:38 -0400, Warp wrote:
> Come on, it's povray. There's the easy way:
>
>vlength(<2,3,4>-<7-8,3>)
#macro DistanceBetweenPoints( A, B )
vlength(<0,0,0>+A-B)
#end
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <396### [at] global2000 net>, Andrea Ryan
<ary### [at] global2000 net> wrote:
> Does the formula give the "hypotenuse" of a shape that looks like a
> doorstop or is it a different shape?
It really just gives the hypotenuse of a 3D triangle...I sometimes think
of it as the line between the front-left-bottom corner and the
back-right-top corner of an axis-aligned box.
--
Christopher James Huff - Personal e-mail: chr### [at] mac com
TAG(Technical Assistance Group) e-mail: chr### [at] tag povray org
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Why add the <0,0,0>? It doesn't contribute anything.
Josh
Ron Parker wrote:
> On 10 Jul 2000 17:09:38 -0400, Warp wrote:
> > Come on, it's povray. There's the easy way:
> >
> >vlength(<2,3,4>-<7-8,3>)
>
> #macro DistanceBetweenPoints( A, B )
> vlength(<0,0,0>+A-B)
> #end
>
> --
> Ron Parker http://www2.fwi.com/~parkerr/traces.html
> My opinions. Mine. Not anyone else's.
--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritone com
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Josh English <eng### [at] spiritone com> wrote:
: Why add the <0,0,0>? It doesn't contribute anything.
It converts the parameter to a vector. The parameter may be a single number.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 10 Jul 2000 19:26:37 -0400, Warp wrote:
>Josh English <eng### [at] spiritone com> wrote:
>: Why add the <0,0,0>? It doesn't contribute anything.
>
> It converts the parameter to a vector. The parameter may be a single number.
Come to think of it, it's not necessary. If either parameter is a vector, the
expression will be promoted at the addition stage, and if both are floats, it
will be promoted prior to taking the length. So it really doesn't contribute
anything.
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Yes, that's the shape that I was thinking of. Thanks.
Brendan
Ron Parker wrote:
> On Mon, 10 Jul 2000 16:46:26 -0400, Andrea Ryan wrote:
> >Does the formula give the "hypotenuse" of a shape that looks like a doorstop or
> >is it a different shape?
>
> It gives the length of the diagonal of the largest rectangular face on a
> solid that looks like a doorstop (assuming you mean a wedge-shaped doorstop.)
> That happens to also be the straight line that connects the two points.
>
> --
> Ron Parker http://www2.fwi.com/~parkerr/traces.html
> My opinions. Mine. Not anyone else's.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Sir,
You will find the answer to your question in the POV docs under "Float
functions' - vlength and then 'Vector Functions'. It is then
straightforward to move a camera between the endpoints while looking_at
another point.
Yours sincerely,
Don Barron
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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |