I suppose you could use Transform3D.lookAt() to achieve this?

Kev

Stein-Arne Sivertsen wrote:

I have a rather simple question which might be a bit off-topic, but i am
looking for a method that can take a beam/line represented by two points
[start,end] anywhere in space and produce the Transform3D that coincides
the line with one of the principal axis (local coordinates, with
startpoint
in origo). I guess it is something that is done often, so maybe
someone has
this for me to reuse.

I will use the inverse transform to replace a line with some more complex
geometry (which i have generated along an axis ) this means the
orientation
of the line to be replaced has some significance. It is therefore an
advantage if the method can handle either a third point for the line or
maybe an up-vector or something similar to determine this.



Regards,

===========================================================================

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".
===========================================================================
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