Hi Tien,

...Your expression should evaluate to the following:
vector: W = (W1,W2) = ( Xi-2*Xj+Xk , Yi-2*Yj+Yk )
and then: value: Math.sqrt( W1*W1 + W2*W2 )

Robert.


Tien Tran Thuong wrote:
>
> thank you for you reply
>
> there are three point:  i, j and k.
> Vi = (Xi, Yi), Vj = (Xj, Yj) and Vk = (Xk, Yk) are the coordinates of  i,j,k
> I'd like to know how to calculate:
> | ( Vi - Vj ) - ( Vj - Vk ) |
>
> it's knew that : | Vi - Vj | = Math.sqrt( (Xi-Xj)*(Xi-Xj) -
> (Yi-Yj)*(Yi-Yj) )
>
> thank you
>


--

---------------------------------------------------
Robert Pies
Ludwigstr. 58
04315 Leipzig
Germany
+49-341-6888217 (phone&fax)
[EMAIL PROTECTED]

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to