source: trunk/gui/vizservers/nanovis/Mat4x4.h @ 226

Last change on this file since 226 was 226, checked in by mmc, 15 years ago
  • Added code for Wei's visualization server.
  • Fixed the energyLevels widget so that it doesn't barf when the user attempts to download its contents.
File size: 926 bytes
Line 
1/*
2 * ----------------------------------------------------------------------
3 * Mat4x4.h: Mat4x4 class
4 *
5 * ======================================================================
6 *  AUTHOR:  Wei Qiao <qiaow@purdue.edu>
7 *           Purdue Rendering and Perceptualization Lab (PURPL)
8 *
9 *  Copyright (c) 2004-2006  Purdue Research Foundation
10 *
11 *  See the file "license.terms" for information on usage and
12 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13 * ======================================================================
14 */
15#ifndef _MAT4X4_H_
16#define _MAT4X4_H_
17
18#include "Vector4.h"
19
20class Mat4x4 
21{
22       
23public:
24        float m[16];    //row by row
25        Mat4x4();
26        Mat4x4(float *vals);
27        ~Mat4x4();
28
29        void print();
30        Mat4x4 inverse();
31        Mat4x4 transpose();
32        Vector4 multiply_row_vector(Vector4 v);
33        Vector4 transform(Vector4 v);
34        Mat4x4 operator*(Mat4x4 op);
35};
36
37#endif
Note: See TracBrowser for help on using the repository browser.