Point3D Class Reference

#include <orthomesh.h>

List of all members.

Public Member Functions

 Point3D (double d1, double d2, double d3)
 Point3D ()
 ~Point3D ()
double & operator[] (int index)
double operator[] (int index) const

Private Attributes

double data [3]

Detailed Description

Definition at line 13 of file orthomesh.h.


Constructor & Destructor Documentation

Point3D::Point3D ( double  d1,
double  d2,
double  d3 
) [inline]

Definition at line 18 of file orthomesh.h.

00019   {
00020     data[0]=d1;
00021     data[1]=d2;
00022     data[2]=d3;
00023   }

Point3D::Point3D (  )  [inline]

Definition at line 24 of file orthomesh.h.

00024 {}

Point3D::~Point3D (  )  [inline]

Definition at line 26 of file orthomesh.h.

00026 {}


Member Function Documentation

double Point3D::operator[] ( int  index  )  const [inline]

Definition at line 32 of file orthomesh.h.

00033   {
00034     assert(index < 3);
00035     return data[index];
00036   }

double& Point3D::operator[] ( int  index  )  [inline]

Definition at line 27 of file orthomesh.h.

00028   {
00029     assert(index < 3);
00030     return data[index];
00031   }


Member Data Documentation

double Point3D::data[3] [private]

Definition at line 16 of file orthomesh.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Sun Apr 8 23:13:26 2012 for CO2INJECTION by  doxygen 1.6.3