Well, the rotations that we had discussed before assume that you know the
component angles for each coordinate.  In some cases, I know the endpoints
of a cylinder.  Don't know the angle that this cylinder makes with any
particular axis.  Just know the endpoints.  So how would I transform a
pair of endpoints into angles that allow me to rotate that cylinder?

-- John

On Sun, 30 Sep 2001, Eric Reiss wrote:

> Date: Sun, 30 Sep 2001 20:42:22 -0400
> From: Eric Reiss <[EMAIL PROTECTED]>
> Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] How to rotate objects?
>
> I think you need to explain this a little more.  Getting a rotation from
> points would require a little more explanation.
>
> At 08:37 PM 09/30/2001 -0400, you wrote:
> >Thanks...
> >
> >I tried something similar to this but I instantiated the Transform3d with
> >the rotation matrix as one of the constructor's parameters.  The API
> >reference says you can do this but it didn't work.  I'll try your
> >suggestion (using setRotation) and see if that does the trick.
> >
> >Oh, one more question... is there an easy way to create a rotation matrix
> >based on a pair of Points or Vectors describing two endpoints?  I don't
> >necessarily know the angle for rotations.  Sometimes I start with the
> >endpoints.
> >
> >-- John

--
_____________________________________________________

John T. Nelson
President               |    Computation.com Inc
mail:                   |    [EMAIL PROTECTED]
company:                |    http://www.computation.com/
journal of computation: |    http://www.computation.org/
_____________________________________________________
"Providing quality IT consulting services since 1992"

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