Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::AdaptiveKDTree::Plane Struct Reference

Split plane. More...

#include <AdaptiveKDTree.hpp>

Public Member Functions

bool left_side (const double point[3])
 
bool right_side (const double point[3])
 
double distance (const double point[3]) const
 

Public Attributes

double coord
 Location of plane as coordinate on normal axis. More...
 
int norm
 The principal axis that is the normal of the plane;. More...
 

Detailed Description

Split plane.

Definition at line 156 of file AdaptiveKDTree.hpp.

Member Function Documentation

◆ distance()

double moab::AdaptiveKDTree::Plane::distance ( const double  point[3]) const
inline

return distance from point to plane

Definition at line 172 of file AdaptiveKDTree.hpp.

173  {
174  return fabs( point[norm] - coord );
175  }

References coord, and norm.

◆ left_side()

bool moab::AdaptiveKDTree::Plane::left_side ( const double  point[3])
inline

return true if point is below/to the left of the split plane

Definition at line 162 of file AdaptiveKDTree.hpp.

163  {
164  return point[norm] < coord;
165  }

References coord, and norm.

◆ right_side()

bool moab::AdaptiveKDTree::Plane::right_side ( const double  point[3])
inline

return true if point is above/to the right of the split plane

Definition at line 167 of file AdaptiveKDTree.hpp.

168  {
169  return point[norm] > coord;
170  }

References coord, and norm.

Member Data Documentation

◆ coord

◆ norm


The documentation for this struct was generated from the following file: