NorMIT-nav  22.09
An IGT application
cxVector3D.h File Reference
#include "cxResourceExport.h"
#include "cxPrecompiledHeader.h"
#include "cxMathBase.h"

Go to the source code of this file.

Namespaces

 cx
 Namespace for all CustusX production code.
 

Typedefs

typedef Eigen::Vector3d cx::Vector3D
 Vector3D is a representation of a point or vector in 3D. More...
 
typedef boost::shared_ptr< Vector3D > cx::Vector3DPtr
 

Functions

bool cx::similar (double a, double b, double tol=1.0E-6)
 check for equality with a tolerance: |b-a|<tol More...
 
Vector3D cx::multiply_elems (const Vector3D &a, const Vector3D &b)
 perform element-wise multiplication of a and b. More...
 
Vector3D cx::divide_elems (const Vector3D &a, const Vector3D &b)
 perform element-wise division of a and b. More...
 
Vector3D cx::cross (const Vector3D &a, const Vector3D &b)
 compute cross product of a and b. More...
 
double cx::dot (const Vector3D &a, const Vector3D &b)
 compute inner product (or dot product) of a and b. More...
 
bool cx::similar (const Vector3D &a, const Vector3D &b, double tol=1.0E-6)
 check for equality with a tolerance: |b-a|<tol More...
 
Vector3D cx::unitVector (double thetaXY, double thetaZ=0.0)
 compute a unit vector given angles xy in the xy plane and z meaning the elevation from the xy plane. More...
 
double cx::getThetaXY (Vector3D v)
 get thetaXY, meaning the angle of v projected onto the xy plane More...
 
double cx::getThetaZ (Vector3D v)
 get thetaZ, z meaning the elevation from the xy plane More...
 
Vector3D cx::round (const Vector3D &a)
 
Vector3D cx::ceil (const Vector3D &a)
 
bool cx::similar (const Eigen::Array3i &a, const Eigen::Array3i &b)
 identical to the equality operator, exists for symmetry with Vector3D. More...
 
QString cx::prettyFormat (Vector3D val, int decimals, int fieldWidth)
 
Eigen::Vector2d cx::fromString (const QString &text)