Subversion Repositories gelsvn

Rev

Rev 89 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef __CGLA_MAT2X2D_H
#define __CGLA_MAT2X2D_H

#include "Vec2d.h"
#include "ArithSqMat2x2Float.h"


namespace CGLA {

        /** Two by two double matrix. This class is useful for various 
                        vector transformations in the plane. */
        class Mat2x2d: public ArithSqMat2x2Float<Vec2d, Mat2x2d>
        {
        public:

                /// Construct a Mat2x2d from two Vec2d vectors.
                Mat2x2d(Vec2d a, Vec2d b): ArithSqMat2x2Float<Vec2d, Mat2x2d> (a,b) {}

                /// Construct a Mat2x2f from four scalars.
                Mat2x2d(double a, double b, double c, double d): 
                        ArithSqMat2x2Float<Vec2d, Mat2x2d>(Vec2d(a,b),Vec2d(c,d)) {}
  
                /// Construct the 0 matrix
                Mat2x2d() {}

        };

}
#endif