JEphem site
jephem API
Build classes

tig.maths
Class Matrix3

java.lang.Object
  |
  +--tig.maths.Matrix3

public class Matrix3
extends java.lang.Object

Simple representation of a 3 x 3 matrix based on doubles.


Field Summary
 double m00
          Term of the matrix
 double m01
          Term of the matrix
 double m02
          Term of the matrix
 double m10
          Term of the matrix
 double m11
          Term of the matrix
 double m12
          Term of the matrix
 double m20
          Term of the matrix
 double m21
          Term of the matrix
 double m22
          Term of the matrix
 
Constructor Summary
Matrix3(double x00, double x01, double x02, double x10, double x11, double x12, double x20, double x21, double x22)
          Unique constructor.
 
Method Summary
static Matrix3 getIdentityMatrix()
          Returns the identity matrix.
static Matrix3 getInverse(Matrix3 M)
          Returns the inverse matrix of M.
static Matrix3 getRotX(double alpha)
          Returns a matrix that can be used as a rotation matrix around the X axis.
static Matrix3 getRotY(double alpha)
          Returns a matrix that can be used as a rotation matrix around the Y axis.
static Matrix3 getRotZ(double alpha)
          Returns a matrix that can be used as a rotation matrix around the Z axis.
static Matrix3 mul(Matrix3 M1, Matrix3 M2)
          Returns a matrix M such as M = M1 * M2.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m00

public double m00
Term of the matrix


m01

public double m01
Term of the matrix


m02

public double m02
Term of the matrix


m10

public double m10
Term of the matrix


m11

public double m11
Term of the matrix


m12

public double m12
Term of the matrix


m20

public double m20
Term of the matrix


m21

public double m21
Term of the matrix


m22

public double m22
Term of the matrix

Constructor Detail

Matrix3

public Matrix3(double x00,
               double x01,
               double x02,
               double x10,
               double x11,
               double x12,
               double x20,
               double x21,
               double x22)
Unique constructor.
Fills the instance variables mij from parameters xij.

Method Detail

getIdentityMatrix

public static Matrix3 getIdentityMatrix()
Returns the identity matrix.


getRotX

public static Matrix3 getRotX(double alpha)
Returns a matrix that can be used as a rotation matrix around the X axis.

Parameters:
alpha - The rotation angle, in radians.

getRotY

public static Matrix3 getRotY(double alpha)
Returns a matrix that can be used as a rotation matrix around the Y axis.

Parameters:
alpha - The rotation angle, in radians.

getRotZ

public static Matrix3 getRotZ(double alpha)
Returns a matrix that can be used as a rotation matrix around the Z axis.

Parameters:
alpha - The rotation angle, in radians.

mul

public static Matrix3 mul(Matrix3 M1,
                          Matrix3 M2)
Returns a matrix M such as M = M1 * M2.


getInverse

public static Matrix3 getInverse(Matrix3 M)
Returns the inverse matrix of M.
If the resulting matrix is called N, we have : M x N = I, the identity matrix.

Parameters:
M - The matrix to invert.

JEphem site
jephem API
Build classes