cgma
geometry.hpp File Reference
#include <vector>
#include <iosfwd>
#include "dataref.hpp"
#include <cmath>

Go to the source code of this file.

Classes

class  Vector3d
class  Transform
class  FillNode
class  Fill
class  Lattice

Typedefs

typedef std::pair< int, int > irange

Functions

std::ostream & operator<< (std::ostream &str, const Vector3d &v)
double matrix_det (double mat[9])
std::ostream & operator<< (std::ostream &str, const Transform &t)

Typedef Documentation

typedef std::pair<int,int> irange

Definition at line 190 of file geometry.hpp.


Function Documentation

double matrix_det ( double  mat[9])

Definition at line 13 of file geometry.cpp.

                                  {
  return (mat[0]*mat[4]*mat[8] -
          mat[0]*mat[5]*mat[7] -
          mat[1]*mat[3]*mat[8] +
          mat[1]*mat[5]*mat[6] +
          mat[2]*mat[3]*mat[7] -
          mat[2]*mat[4]*mat[6]);
}
std::ostream& operator<< ( std::ostream &  str,
const Vector3d v 
)

Definition at line 8 of file geometry.cpp.

                                                           {
  str << "(" << v.v[0] << ", " << v.v[1] << ", " << v.v[2] << ")";
  return str;
}
std::ostream& operator<< ( std::ostream &  str,
const Transform t 
)

Definition at line 219 of file geometry.cpp.

                                                             {
  t.print(str);
  return str;
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines