1 #ifndef __stir_cross_product_H__ 2 #define __stir_cross_product_H__ 37 template <
class coordT>
38 CartesianCoordinate3D<coordT>
42 a.y() * b.x() - a.x() * b.y(), -a.z() * b.x() + a.x() * b.z(), a.z() * b.y() - a.y() * b.z());
a templated class for 3-dimensional coordinates.
Definition: CartesianCoordinate3D.h:52
defines the stir::CartesianCoordinate3D<coordT> class
CartesianCoordinate3D< coordT > cross_product(const CartesianCoordinate3D< coordT > &a, const CartesianCoordinate3D< coordT > &b)
the cross-product for 3-dimensional coordinates.
Definition: cross_product.h:39