Overture  Version 25
Macros | Functions
MatrixTransform.C File Reference
#include "MatrixTransform.h"
#include "MappingInformation.h"
#include "MappingRC.h"
Include dependency graph for MatrixTransform.C:

Macros

#define CROSS(dest, v1, v2)
 
#define DOT(v1, v2)   (v1[0]*v2[0]+v1[1]*v2[1]+v1[2]*v2[2])
 
#define SUB(dest, v1, v2)
 
#define M(row, col)   mtx9[(row)+3*(col)]
 

Functions

void getMatrixToRotateOneVectorIntoAnother (real *from, real *to, real *mtx9)
 

Macro Definition Documentation

#define CROSS (   dest,
  v1,
  v2 
)
Value:
{ \
dest[0]=v1[1]*v2[2]-v1[2]*v2[1]; \
dest[1]=v1[2]*v2[0]-v1[0]*v2[2]; \
dest[2]=v1[0]*v2[1]-v1[1]*v2[0];}

Referenced by getMatrixToRotateOneVectorIntoAnother().

#define DOT (   v1,
  v2 
)    (v1[0]*v2[0]+v1[1]*v2[1]+v1[2]*v2[2])
#define M (   row,
  col 
)    mtx9[(row)+3*(col)]
#define SUB (   dest,
  v1,
  v2 
)
Value:
{ \
dest[0]=v1[0]-v2[0]; \
dest[1]=v1[1]-v2[1]; \
dest[2]=v1[2]-v2[2];}

Function Documentation

void getMatrixToRotateOneVectorIntoAnother ( real from,
real to,
real mtx9 
)

References CROSS, DOT, M, and REAL_EPSILON.

Referenced by MatrixTransform::update().