libatomprobe
Library for Atom Probe Tomography (APT) computation
Namespaces | Functions
misc.cpp File Reference
#include "atomprobe/helper/maths/misc.h"
#include "gsl/gsl_linalg.h"
#include "atomprobe/helper/aptAssert.h"
Include dependency graph for misc.cpp:

Go to the source code of this file.

Namespaces

 AtomProbe
 

Functions

void AtomProbe::gsl_matrix_mult (const gsl_matrix *A, const gsl_matrix *B, gsl_matrix *&res, bool alloc=false)
 
unsigned int AtomProbe::estimateRank (const gsl_matrix *m, float tolerance=sqrt(std::numeric_limits< float >::epsilon()))
 Estimate the rank of the given matrix. More...
 
bool AtomProbe::solveLeastSquares (gsl_matrix *m, gsl_vector *b, gsl_vector *&x)
 Use an SVD based least-squares solver to solve Mx=b (for x). More...
 
unsigned int AtomProbe::vectorPointDir (const Point3D &pA, const Point3D &pB, const Point3D &vC, const Point3D &vD)
 Check which way vectors attached to two 3D points "point",. More...
 
float AtomProbe::distanceToSegment (const Point3D &fA, const Point3D &fB, const Point3D &p)
 
float AtomProbe::signedDistanceToFacet (const Point3D &fA, const Point3D &fB, const Point3D &fC, const Point3D &normal, const Point3D &p)
 Find the distance between a point, and a triangular facet – may be positive or negative. More...
 
float AtomProbe::distanceToFacet (const Point3D &fA, const Point3D &fB, const Point3D &fC, const Point3D &normal, const Point3D &p)
 
double AtomProbe::det3by3 (const double *ptArray)
 
bool AtomProbe::triIsDegenerate (const Point3D &fA, const Point3D &fB, const Point3D &fC)
 
double AtomProbe::pyramidVol (const Point3D *planarPts, const Point3D &apex)