ProtoMol - an object-oriented component based framework for Molecular Dynamics simulations.

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

ProtoMol::Matrix3by3 Class Reference

#include <Matrix3by3.h>

List of all members.

Public Member Functions

 Matrix3by3 ()
 Matrix3by3 (Real x00, Real x01, Real x02, Real x10, Real x11, Real x12, Real x20, Real x21, Real x22)
 Matrix3by3 (float mat[9])
 Matrix3by3 (double mat[9])
 Matrix3by3 (const Vector3D &a, const Vector3D &b)
 Matrix3by3 (const Vector3D &v1, const Vector3D &v2, const Vector3D &v3)
const Matrix3by3getIdentity ()
void identity ()
void zeroMatrix ()
bool zero () const
Real det ()
Real operator() (int i, int j) const
void operator() (int i, int j, Real x)
void operator() (Real x00, Real x01, Real x02, Real x10, Real x11, Real x12, Real x20, Real x21, Real x22)
bool operator== (const Matrix3by3 &tm) const
bool operator!= (const Matrix3by3 &tm) const
Matrix3by3operator *= (const Matrix3by3 &tm)
Matrix3by3 operator * (const Matrix3by3 &tm) const
Vector3D operator * (const Vector3D &tm) const
Matrix3by3operator *= (const Real tm)
Matrix3by3 operator * (const Real tm) const
Matrix3by3operator/= (const Real tm)
Matrix3by3 operator/ (const Real tm) const
Matrix3by3operator+= (const Matrix3by3 &tm)
Matrix3by3 operator+ (const Matrix3by3 &tm) const
Matrix3by3operator-= (const Matrix3by3 &tm)
Matrix3by3 operator- (const Matrix3by3 &tm) const
Matrix3by3 operator- (void) const
void transpose ()
void transpose (const Matrix3by3 &tm)
Matrix3by3 transposed () const
bool invert ()
void scale (Real sx, Real sy, Real sz)
void scale (Real s)
void scale (const Vector3D &scaleFactor)
void rotate (const Vector3D &axis, Real alpha)
void rotate (const Vector3D &axis, Real sinAlpha, Real cosAlpha)
void rotate (const Vector3D &from, const Vector3D &to)

Private Attributes

Real m00
Real m01
Real m02
Real m10
Real m11
Real m12
Real m20
Real m21
Real m22

Static Private Attributes

const Matrix3by3 ourIdentity = Matrix3by3(1,0,0, 0,1,0, 0,0,1)

Friends

std::ostream & operator<< (std::ostream &os, const Matrix3by3 &tm)
Vector3D operator * (const Vector3D &point, const Matrix3by3 &tm)
void convert (const Matrix3by3 &from, double to[9])
void convert (const Matrix3by3 &from, float to[9])


Constructor & Destructor Documentation

ProtoMol::Matrix3by3::Matrix3by3  ) 
 

ProtoMol::Matrix3by3::Matrix3by3 Real  x00,
Real  x01,
Real  x02,
Real  x10,
Real  x11,
Real  x12,
Real  x20,
Real  x21,
Real  x22
 

ProtoMol::Matrix3by3::Matrix3by3 float  mat[9]  ) 
 

ProtoMol::Matrix3by3::Matrix3by3 double  mat[9]  ) 
 

ProtoMol::Matrix3by3::Matrix3by3 const Vector3D a,
const Vector3D b
 

ProtoMol::Matrix3by3::Matrix3by3 const Vector3D v1,
const Vector3D v2,
const Vector3D v3
 


Member Function Documentation

Real ProtoMol::Matrix3by3::det  ) 
 

const Matrix3by3 & ProtoMol::Matrix3by3::getIdentity  )  [inline]
 

void ProtoMol::Matrix3by3::identity  ) 
 

bool ProtoMol::Matrix3by3::invert  ) 
 

Matrix3by3 ProtoMol::Matrix3by3::operator * const Real  tm  )  const
 

Vector3D ProtoMol::Matrix3by3::operator * const Vector3D tm  )  const
 

Matrix3by3 ProtoMol::Matrix3by3::operator * const Matrix3by3 tm  )  const
 

Matrix3by3 & ProtoMol::Matrix3by3::operator *= const Real  tm  ) 
 

Matrix3by3 & ProtoMol::Matrix3by3::operator *= const Matrix3by3 tm  ) 
 

bool ProtoMol::Matrix3by3::operator!= const Matrix3by3 tm  )  const
 

void ProtoMol::Matrix3by3::operator() Real  x00,
Real  x01,
Real  x02,
Real  x10,
Real  x11,
Real  x12,
Real  x20,
Real  x21,
Real  x22
 

void ProtoMol::Matrix3by3::operator() int  i,
int  j,
Real  x
 

Real ProtoMol::Matrix3by3::operator() int  i,
int  j
const
 

Matrix3by3 ProtoMol::Matrix3by3::operator+ const Matrix3by3 tm  )  const
 

Matrix3by3 & ProtoMol::Matrix3by3::operator+= const Matrix3by3 tm  ) 
 

Matrix3by3 ProtoMol::Matrix3by3::operator- void   )  const
 

Matrix3by3 ProtoMol::Matrix3by3::operator- const Matrix3by3 tm  )  const
 

Matrix3by3 & ProtoMol::Matrix3by3::operator-= const Matrix3by3 tm  ) 
 

Matrix3by3 ProtoMol::Matrix3by3::operator/ const Real  tm  )  const
 

Matrix3by3 & ProtoMol::Matrix3by3::operator/= const Real  tm  ) 
 

bool ProtoMol::Matrix3by3::operator== const Matrix3by3 tm  )  const
 

void ProtoMol::Matrix3by3::rotate const Vector3D from,
const Vector3D to
 

Rotation matrix such that from -> to and rotate along z-axes by beta (rad)

void ProtoMol::Matrix3by3::rotate const Vector3D axis,
Real  sinAlpha,
Real  cosAlpha
 

void ProtoMol::Matrix3by3::rotate const Vector3D axis,
Real  alpha
 

Rotation matrix along axis by alpha (rad).

void ProtoMol::Matrix3by3::scale const Vector3D scaleFactor  ) 
 

void ProtoMol::Matrix3by3::scale Real  s  ) 
 

void ProtoMol::Matrix3by3::scale Real  sx,
Real  sy,
Real  sz
 

void ProtoMol::Matrix3by3::transpose const Matrix3by3 tm  ) 
 

void ProtoMol::Matrix3by3::transpose  ) 
 

Matrix3by3 ProtoMol::Matrix3by3::transposed  )  const
 

bool ProtoMol::Matrix3by3::zero  )  const
 

void ProtoMol::Matrix3by3::zeroMatrix  ) 
 


Friends And Related Function Documentation

void convert const Matrix3by3 from,
float  to[9]
[friend]
 

void convert const Matrix3by3 from,
double  to[9]
[friend]
 

Vector3D operator * const Vector3D point,
const Matrix3by3 tm
[friend]
 

std::ostream& operator<< std::ostream &  os,
const Matrix3by3 tm
[friend]
 


Member Data Documentation

Real ProtoMol::Matrix3by3::m00 [private]
 

Real ProtoMol::Matrix3by3::m01 [private]
 

Real ProtoMol::Matrix3by3::m02 [private]
 

Real ProtoMol::Matrix3by3::m10 [private]
 

Real ProtoMol::Matrix3by3::m11 [private]
 

Real ProtoMol::Matrix3by3::m12 [private]
 

Real ProtoMol::Matrix3by3::m20 [private]
 

Real ProtoMol::Matrix3by3::m21 [private]
 

Real ProtoMol::Matrix3by3::m22 [private]
 

const Matrix3by3 ProtoMol::Matrix3by3::ourIdentity = Matrix3by3(1,0,0, 0,1,0, 0,0,1) [static, private]
 


The documentation for this class was generated from the following files: Last update: . GNU GENERAL PUBLIC LICENSE, copyrighted by the University of Notre Dame and the University of Bergen, Norway.