RayZaler 0.1
The free opto-mechanical simulation framework
RZ::Matrix3 Struct Reference
Collaboration diagram for RZ::Matrix3:

Public Member Functions

 Matrix3 (Vec3 const &row1, Vec3 const &row2, Vec3 const &row3)
 
 Matrix3 (const RZ::Real coef[3][3])
 
Vec3 const & vx () const
 
Vec3 const & vy () const
 
Vec3 const & vz () const
 
void applyLeft (Matrix3 const &m)
 
void applyRight (Matrix3 const &m)
 
Vec3 operator* (Vec3 const &v) const
 
Matrix3 operator* (Matrix3 const &m) const
 
Matrix3 operator* (Real k) const
 
Matrix3 operator/ (Real k) const
 
Matrix3 operator+ (Matrix3 const &m)
 
Matrix3 operator- (Matrix3 const &m)
 
Real det () const
 
Real tr () const
 
Matrix3 t () const
 
std::string toString () const
 
bool operator== (Matrix3 const &other) const
 

Static Public Member Functions

static Matrix3 zero ()
 
static Matrix3 eye ()
 
static Matrix3 crossMatrix (Vec3 const &k)
 
static Matrix3 rot (Vec3 const &k, Real theta)
 
static Matrix3 azel (Real az, Real el)
 

Public Attributes

union {
   Vec3   rows [3]
 
   struct {
      Vec3   vx
 
      Vec3   vy
 
      Vec3   vz
 
   }   row
 
   Real   coef [3][3]
 
}; 
 

The documentation for this struct was generated from the following file: