Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Matrix3.cpp File Reference

A three-by-three matrix class. More...

#include <SimData/Matrix3.h>
#include <SimData/Vector3.h>
#include <SimData/Quat.h>
#include <SimData/Archive.h>
#include <iomanip>
#include <sstream>
#include <cmath>

Defines

#define INNER_PRODUCT(a, b, r, c)
#define DET2(m, a, b, c, d)   ((m)[a][b]*(m)[c][d] - (m)[a][d]*(m)[c][b])

Functions

std::ostream & operator<< (std::ostream &os, const Matrix3 &m)


Detailed Description

A three-by-three matrix class.

This source code was originally based on the Matrix class of the OpenSceneGraph library, Copyright 1998-2003 Robert Osfield. Source code from OpenSceneGraph is used here under the GNU General Public License Version 2 or later, as permitted under the OpenSceneGraph Public License Version 0.0 (exception 3) and the GNU Lesser Public License Version 2 (clause 3).


Define Documentation

#define DET2 m,
a,
b,
c,
     ((m)[a][b]*(m)[c][d] - (m)[a][d]*(m)[c][b])
 

#define INNER_PRODUCT a,
b,
r,
 
 

Value:

((a)._mat[r][0] * (b)._mat[0][c] + \
         (a)._mat[r][1] * (b)._mat[1][c] + \
         (a)._mat[r][2] * (b)._mat[2][c]);


Function Documentation

std::ostream& operator<< std::ostream &    os,
const Matrix3   m
 


SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage.

Generated on Tue Oct 14 12:06:40 2003, using Doxygen 1.2.18.

[SF.net]