View Javadoc

1   /*
2    * RotationPassiveXYZ.java
3    *
4    * Created on July 31, 2007, 3:45 PM
5    *
6    * To change this template, choose Tools | Template Manager
7    * and open the template in the editor.
8    */
9   
10  package org.lcsim.detector;
11  
12  
13  /**
14   * Represents a passive rotation in 3D space.
15   *
16   * @author Tim Nelson <tknelson@slac.stanford.edu>
17   */
18  public class RotationPassiveXYZ extends Rotation3D
19  {
20      
21      /** Creates a new instance of RotationPassiveXYZ */
22      public RotationPassiveXYZ(double alpha, double beta, double gamma)
23      {
24          super(makeRotation(alpha,beta,gamma));
25      }
26     
27      // Static Method
28      //===============
29      public static IRotation3D makeRotation(double alpha, double beta, double gamma)
30      {
31          return multiply(passiveZRotation(gamma),multiply(passiveYRotation(beta),passiveXRotation(alpha)));
32      }
33      
34  }