moab
moab::AdaptiveKDTree::Plane Struct Reference

Split plane. More...

#include <AdaptiveKDTree.hpp>

List of all members.

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.
int norm
 The principal axis that is the normal of the plane;.

Detailed Description

Split plane.

Definition at line 151 of file AdaptiveKDTree.hpp.


Member Function Documentation

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

return distance from point to plane

Definition at line 164 of file AdaptiveKDTree.hpp.

                                                       {
          return fabs(point[norm] - coord);
        }
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 156 of file AdaptiveKDTree.hpp.

                                                {
          return point[norm] < coord;
        }
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 160 of file AdaptiveKDTree.hpp.

                                                 {
          return point[norm] > coord;
        }

Member Data Documentation

Location of plane as coordinate on normal axis.

Definition at line 152 of file AdaptiveKDTree.hpp.

The principal axis that is the normal of the plane;.

Definition at line 153 of file AdaptiveKDTree.hpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines