Ignore:
Timestamp:
Oct 13, 2009, 4:42:58 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
6f9d14, 96d8dc
Parents:
9f73db
git-author:
Frederik Heber <heber@…> (10/13/09 16:14:49)
git-committer:
Frederik Heber <heber@…> (10/13/09 16:42:58)
Message:

Pair correlation analysis added.

Unit tests are working fine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/tesselationhelpers.cpp

    r9f73db r57cfb7  
    679679};
    680680
     681/** Returns the distance to the plane defined by \a *triangle
     682 * \param *out output stream for debugging
     683 * \param *x Vector to calculate distance to
     684 * \param *triangle triangle defining plane
     685 * \return distance between \a *x and plane defined by \a *triangle, -1 - if something went wrong
     686 */
     687double DistanceToTrianglePlane(ofstream *out, Vector *x, BoundaryTriangleSet *triangle)
     688{
     689  double distance = 0.;
     690  if (x == NULL) {
     691    return -1;
     692  }
     693  distance = x->DistanceToPlane(out, &triangle->NormalVector, triangle->endpoints[0]->node->node);
     694  return distance;
     695};
    681696
    682697/** Creates the objects in a VRML file.
Note: See TracChangeset for help on using the changeset viewer.