Strong Coupling Core  0.1.0
Library for solving a system of strong coupled physical subsystems.
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | List of all members
sc::Mat3 Class Reference

3x3 Matrix class More...

#include <Mat3.h>

Public Member Functions

 Mat3 ()
 
 Mat3 (const Quat &q)
 
virtual ~Mat3 ()
 
void set (double, double, double, double, double, double, double, double, double)
 
Mat3 multiplyMatrix (const Mat3 &m) const
 
Vec3 multiplyVector (const Vec3 &m) const
 
void setRotationFromQuaternion (const Quat &q)
 
Mat3 scale (const Vec3 &v)
 Scale each column in the matrix. More...
 
Vec3 getColumn (int i) const
 Get a column as a vector. More...
 
double getElement (int row, int column) const
 
void setElement (int row, int column, double value)
 
Mat3 transpose () const
 
void copy (const Mat3 &m)
 Copy another matrix. More...
 
Mat3 operator* (const Mat3 &y) const
 A*B. More...
 
Vec3 operator* (const Vec3 &y) const
 A*x. More...
 

Detailed Description

3x3 Matrix class

Constructor & Destructor Documentation

Mat3::Mat3 ( )
Mat3::Mat3 ( const Quat q)
Mat3::~Mat3 ( )
virtual

Member Function Documentation

void Mat3::copy ( const Mat3 m)

Copy another matrix.

Vec3 Mat3::getColumn ( int  i) const

Get a column as a vector.

double Mat3::getElement ( int  row,
int  column 
) const
Mat3 Mat3::multiplyMatrix ( const Mat3 m) const
Vec3 Mat3::multiplyVector ( const Vec3 m) const
Mat3 sc::Mat3::operator* ( const Mat3 y) const
inline

A*B.

Vec3 sc::Mat3::operator* ( const Vec3 y) const
inline

A*x.

Mat3 Mat3::scale ( const Vec3 v)

Scale each column in the matrix.

void Mat3::set ( double  a11,
double  a12,
double  a13,
double  a21,
double  a22,
double  a23,
double  a31,
double  a32,
double  a33 
)
void Mat3::setElement ( int  row,
int  column,
double  value 
)
void Mat3::setRotationFromQuaternion ( const Quat q)
Mat3 Mat3::transpose ( ) const

The documentation for this class was generated from the following files: