Computer Assisted Medical Intervention Tool Kit  version 5.2
Tools.cpp File Reference
#include "Tools.h"
#include <iostream>
+ Include dependency graph for Tools.cpp:

Functions

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 timeParameter2double (mml::TimeParameter &t)
 convert a TimeParameter (from xsd-cxx generetaed file) to double More...
 

Function Documentation

◆ 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:

◆ 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: