Hex  1.0
Hydrogen-electron collision solver
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Functions
vec3d.h File Reference
#include <iostream>
Include dependency graph for vec3d.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vec3d
 Simple 3D vector class. More...


std::ostream & operator<< (std::ostream &os, vec3d const &v)
 Write to stream. More...
std::istream & operator>> (std::istream &is, vec3d &v)
 Read from stream. More...
double dot (vec3d const &u, vec3d const &v)
 Dot product. More...
vec3d cross (vec3d const &u, vec3d const &v)
 Cross product. More...
vec3d operator- (vec3d const &u, vec3d const &v)
 Vector difference. More...
vec3d operator* (vec3d const &u, double a)
 Vector scaling. More...
double norm (vec3d const &v)
 Vector length. More...
vec3d normalize (vec3d const &v)
 Return normal vector. More...

Function Documentation

vec3d cross ( vec3d const &  u,
vec3d const &  v 
double dot ( vec3d const &  u,
vec3d const &  v 
double norm ( vec3d const &  v)
vec3d normalize ( vec3d const &  v)
vec3d operator* ( vec3d const &  u,
double  a 
vec3d operator- ( vec3d const &  u,
vec3d const &  v 
std::ostream& operator<< ( std::ostream &  os,
vec3d const &  v 
std::istream& operator>> ( std::istream &  is,
vec3d v