Message: Re: Has anyone tried rotate(angle,axis)? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Has anyone tried rotate(angle,axis)? 

Forum: Geometry
Re: Question Has anyone tried rotate(angle,axis)? (Huagang Yan)
Date: 13 Sep, 2018
From: michel maire <michel maire>

On Thu, 13 Sep 2018 07:42:23 GMT, Huagang Yan wrote:
> I need to rotate a cylinder around an axis which is different from x, y,
> and z axis, and perpendicular to the axis of the cylinder. I tried to
> use the method of rotate(anagle,axis) for G4RotationMatrix. It seems
> this method does not work correctly at all. Besides, it seems that the
> method has not been tested in the examples.
> The problem I dealt with was first rotating it around y axis, then
> around that flipped axis. I am completely bewildered now.
> Does anyone have experience and advice on that?
> Thanks.

 Did you have a look to examples/extended/geometry/transforms ?
 Try it interactively. Here a picture of what you must get.

 Personally, I prefer to write directly the matrix (first or second method). At least, I understand what I am doing.


Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Question: Re: Has anyone tried rotate(angle,axis)?   (Huagang Yan - 13 Sep, 2018)
(_ None: Re: Has anyone tried rotate(angle,axis)?   (michel maire - 13 Sep, 2018)
 Add Message Add Message
to: "Re: Has anyone tried rotate(angle,axis)?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]