Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
moab::NCHelper::Node3D Class Reference

#include <NCHelper.hpp>

Public Member Functions

bool operator< (const Node3D &) const
 Node3D (double x, double y, double z)

Public Attributes

double coords [3]

Detailed Description

Definition at line 52 of file NCHelper.hpp.


Constructor & Destructor Documentation

moab::NCHelper::Node3D::Node3D ( double  x,
double  y,
double  z 
) [inline]

Definition at line 57 of file NCHelper.hpp.

References coords.

        {
            coords[0] = x;
            coords[1] = y;
            coords[2] = z;
        }

Member Function Documentation

bool moab::NCHelper::Node3D::operator< ( const Node3D other) const

Definition at line 1353 of file NCHelper.cpp.

References coords, and moab::tolerance.

{
    if( coords[0] <= other.coords[0] - tolerance )
        return true;
    else if( coords[0] >= other.coords[0] + tolerance )
        return false;
    if( coords[1] <= other.coords[1] - tolerance )
        return true;
    else if( coords[1] >= other.coords[1] + tolerance )
        return false;
    if( coords[2] <= other.coords[2] - tolerance )
        return true;
    else if( coords[0] >= other.coords[0] + tolerance )
        return false;

    return false;
}

Member Data Documentation

Definition at line 55 of file NCHelper.hpp.

Referenced by Node3D(), and operator<().

List of all members.


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