Matrix4.h File Reference

Go to the source code of this file.

Classes

class  Matrix4
 4x4 matrix class with numerous operators, conversions, etc. More...

Functions

void trans_from_rotate (const double mat3[9], Matrix4 *mat4)
 Transform 3x3 into 4x4 matrix:.
void print_Matrix4 (const Matrix4 *mat4)
 Print formatted matrix.


Function Documentation

void print_Matrix4 ( const Matrix4 mat4  ) 

Print formatted matrix.

Definition at line 379 of file Matrix4.C.

References j, and Matrix4::mat.

00379                                         {
00380   int i, j;
00381   for (i=0; i<4; i++) {
00382     for (j=0; j<4; j++) {
00383       printf("%f ", mat4->mat[4*j+i]);
00384     }
00385     printf("\n");
00386   }
00387   printf("\n");
00388 }

void trans_from_rotate ( const double  mat3[9],
Matrix4 mat4 
)

Transform 3x3 into 4x4 matrix:.

Definition at line 369 of file Matrix4.C.

References Matrix4::mat.

00369                                                              {
00370   int i;
00371   for (i=0; i<3; i++) {
00372     mat4->mat[0+i] = mat3[3*i];
00373     mat4->mat[4+i] = mat3[3*i+1];
00374     mat4->mat[8+i] = mat3[3*i+2];
00375   }
00376 }


Generated on Thu Sep 21 01:17:15 2017 for NAMD by  doxygen 1.4.7