Back to index

nux  3.0.0
Public Member Functions | Public Attributes
nux::Point3D< T > Class Template Reference

#include <Point3D.h>

Collaboration diagram for nux::Point3D< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Point3D ()
 ~Point3D ()
 Point3D (const Point3D &Pt)
 Point3D (T x, T y, T z)
void Set (T X, T Y, T Z)
bool operator== (const Point3D< T > &Pt) const
bool operator!= (const Point3D< T > &Pt) const

Public Attributes

x
y
z

Detailed Description

template<typename T>
class nux::Point3D< T >

Definition at line 30 of file Point3D.h.


Constructor & Destructor Documentation

template<typename T >
nux::Point3D< T >::Point3D ( )

Definition at line 46 of file Point3D.h.

  {
    x = 0;
    y = 0;
    z = 0;
  }
template<typename T >
nux::Point3D< T >::~Point3D ( )

Definition at line 54 of file Point3D.h.

  {

  }
template<typename T >
nux::Point3D< T >::Point3D ( const Point3D< T > &  Pt)

Definition at line 60 of file Point3D.h.

  {
    x = Pt.x;
    y = Pt.y;
    z = Pt.z;
  }
template<typename T >
nux::Point3D< T >::Point3D ( x,
y,
z 
)

Definition at line 68 of file Point3D.h.

  {
    x = X;
    y = Y;
    z = Z;
  }

Member Function Documentation

template<typename T >
bool nux::Point3D< T >::operator!= ( const Point3D< T > &  Pt) const

Definition at line 97 of file Point3D.h.

  {
    return ! ( (*this) == Pt);
  }
template<typename T >
bool nux::Point3D< T >::operator== ( const Point3D< T > &  Pt) const

Definition at line 84 of file Point3D.h.

  {
    if ( (x == Pt.x) &&
         (y == Pt.y) &&
         (z == Pt.z) )
    {
      return true;
    }

    return false;
  }
template<typename T >
void nux::Point3D< T >::Set ( X,
Y,
Z 
)

Definition at line 76 of file Point3D.h.

  {
    x = X;
    y = Y;
    z = Z;
  }

Member Data Documentation

template<typename T>
T nux::Point3D< T >::x

Definition at line 42 of file Point3D.h.

template<typename T>
T nux::Point3D< T >::y

Definition at line 42 of file Point3D.h.

template<typename T>
T nux::Point3D< T >::z

Definition at line 42 of file Point3D.h.


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