Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: rcs/posemath/PmRotationMatrix.java


1   /*
2   *  New Java File starts here.
3   *  This file should be named PmRotationMatrix.java
4   */
5   
6   
7   // Set Package Name
8   package rcs.posemath;
9   
10  // Import all NML, CMS, and RCS classes and interfaces
11  import rcs.*;
12  import rcs.nml.*;
13  import rcs.utils.*;
14  
15  /*
16  *  Class definition for PmRotationMatrix
17  *  Automatically generated by RCS Java Diagnostics Tool.
18  *  on Wed Jan 07 10:53:45 EST 1998
19  */
20  public class PmRotationMatrix
21  {
22    public PmCartesian x = new PmCartesian();
23    public PmCartesian y = new PmCartesian();
24    public PmCartesian z = new PmCartesian();
25  
26    public void update(NMLFormatConverter nml_fc)
27    {
28      x.update(nml_fc);
29      y.update(nml_fc);
30      z.update(nml_fc);
31    }
32  
33    public PmRotationMatrix(PmCartesian startx, PmCartesian starty, PmCartesian startz)
34    {
35      x = startx;
36      y = starty;
37      z = startz;
38    }
39  
40    public PmRotationMatrix()
41    {
42    }
43  
44    public PmRotationMatrix(
45          double xx, double xy, double xz,
46          double yx, double yy, double yz,
47          double zx, double zy, double zz)
48    {
49      x = new PmCartesian(xx,xy,xz);
50      y = new PmCartesian(yx,yy,yz);
51      z = new PmCartesian(zx,zy,zz);
52    }
53  
54    public String toString()
55    {
56      return " { \n\tx = "+x+",\n\ty ="+y+",\n\tz = "+z+"\n } ";
57    }
58  
59  
60  }
61