/usr/include/ossim/base/ossimMatrix3x3.h is in libossim-dev 1.8.16-3+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts (gpotts@imagelinks.com)
//
// Description:
//
// Helper class for using NEWMAT::Matrix's.
//
//*******************************************************************
// $Id: ossimMatrix3x3.h 14789 2009-06-29 16:48:14Z dburken $
#ifndef ossimMatrix3x3_HEADER
#define ossimMatrix3x3_HEADER
#include <iostream>
#include <ossim/matrix/newmat.h>
#include <ossim/matrix/newmatio.h>
#include <ossim/base/ossimConstants.h>
class ossimColumnVector3d;
class OSSIMDLLEXPORT ossimMatrix3x3
{
public:
/*!
* Uses the matrix package to compute the eigenvalues for this
* matrix
*/
ossimColumnVector3d getEigenValues(const NEWMAT::Matrix& rhs);
/*!
* Returns a blank 3x3 matrix.
*/
static NEWMAT::Matrix create();
/*!
* Returns a copy of "m".
* Note:
* If "m" is not a 3x3 that's an error and a blank matrix is returned.
*/
static NEWMAT::Matrix create(const NEWMAT::Matrix& m);
/*!
* Create a 3x3 with assigned values.
*/
static NEWMAT::Matrix create(double v00, double v01, double v02,
double v10, double v11, double v12,
double v20, double v21, double v22);
static NEWMAT::Matrix createIdentity();
static NEWMAT::Matrix createZero();
static NEWMAT::Matrix createRotationMatrix(double angleX,
double angleY,
double angleZ,
ossimCoordSysOrientMode orientationMode=OSSIM_RIGHT_HANDED);
static NEWMAT::Matrix createRotationXMatrix(double angle,
ossimCoordSysOrientMode orientationMode=OSSIM_RIGHT_HANDED);
static NEWMAT::Matrix createRotationYMatrix(double angle,
ossimCoordSysOrientMode orientationMode=OSSIM_RIGHT_HANDED);
static NEWMAT::Matrix createRotationZMatrix(double angle,
ossimCoordSysOrientMode orientationMode=OSSIM_RIGHT_HANDED);
static NEWMAT::Matrix createScaleMatrix(double X, double Y, double Z);
static NEWMAT::Matrix createTranslationMatrix(double dx,double dy);
protected:
ossimMatrix3x3(){} // To squash un-warranted compiler warnings...
private:
ossimMatrix3x3(const ossimMatrix3x3& rhs);
const ossimMatrix3x3& operator=(const ossimMatrix3x3& rhs);
};
#endif
|