Computer Assited Medical Intervention Tool Kit  version 5.0
Tools.h File Reference
#include <MonitoringModel.hxx>
#include <cmath>
+ Include dependency graph for Tools.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void crossProduct (double vec1[3], double vec2[3], double res[3])
 compute cross product More...
 
double distance (double pos[3], double pos2[3])
 compute euclidian distance More...
 
double distanceToTrianglePlane (double point[3], double tri1[3], double tri2[3], double tri3[3])
 compute the distance of a point to the plane defined by a 3D triangle. More...
 
double dotProduct (double vec1[3], double vec2[3])
 compute dot product More...
 
void normalize (double vec[3])
 normalize vector More...
 
double normOf (double vec[3])
 norm of vector More...
 
double timeParameter2double (mml::TimeParameter &t)
 convert a TimeParameter (from xsd-cxx generetaed file) to double More...
 

Function Documentation

◆ crossProduct()

void crossProduct ( double  vec1[3],
double  vec2[3],
double  res[3] 
)
inline

compute cross product

Referenced by distanceToTrianglePlane().

+ Here is the caller graph for this function:

◆ distance()

double distance ( double  pos[3],
double  pos2[3] 
)
inline

compute euclidian distance

Referenced by MonitorNormDisplacement::calculate(), MonitorGeometricDeviation::calculate(), MonitorPointSetDistance::calculate(), MonitorRen::calculate(), MonitorPointFinalSetDistance::calculate(), Position::calculate(), distanceToTrianglePlane(), Reference::getDistanceToTriangularMesh(), and Reference::getNearest().

+ Here is the caller graph for this function:

◆ distanceToTrianglePlane()

double distanceToTrianglePlane ( double  point[3],
double  tri1[3],
double  tri2[3],
double  tri3[3] 
)

compute the distance of a point to the plane defined by a 3D triangle.

It is the distance between the given point and its projection on the triangle plane.

Parameters
pointcoords of the point
tri1coords of the 1st point of the triangle
tri2coords of the 2nd point of the triangle
tri3coords of the 3rd point of the triangle

References crossProduct(), distance(), dotProduct(), and normOf().

Referenced by Reference::getDistanceToTriangularMesh().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dotProduct()

double dotProduct ( double  vec1[3],
double  vec2[3] 
)
inline

compute dot product

Referenced by distanceToTrianglePlane(), and camitk::ArbitrarySingleImageComponent::Multiply4x4().

+ Here is the caller graph for this function:

◆ normalize()

void normalize ( double  vec[3])
inline

normalize vector

◆ normOf()

double normOf ( double  vec[3])
inline

norm of vector

Referenced by distanceToTrianglePlane().

+ Here is the caller graph for this function:

◆ timeParameter2double()

double timeParameter2double ( mml::TimeParameter &  t)

convert a TimeParameter (from xsd-cxx generetaed file) to double

Referenced by Monitor::Monitor(), MonitoringManager::MonitoringManager(), and MonitoringManager::saveMonitors().

+ Here is the caller graph for this function: