CustusX  16.5.0-rc9
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cxVector3D.cpp File Reference
#include "cxVector3D.h"
#include <vtkMath.h>
#include <vtkSmartPointer.h>
#include "cxUtilHelpers.h"
#include "cxTypeConversions.h"
#include "vtkForwardDeclarations.h"
#include <cmath>
#include <QString>

Go to the source code of this file.

Namespaces

 cx
 Namespace for all CustusX production code.
 

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)