Public Member Functions | Public Attributes

ofPoint Class Reference

#include <ofTypes.h>

List of all members.

Public Member Functions

virtual ~ofPoint ()
 ofPoint (float _x=0.0f, float _y=0.0f, float _z=0.0f)
 ofPoint (const ofPoint &pnt)
void set (float _x, float _y, float _z=0)
ofPoint operator- () const
bool operator== (const ofPoint &pnt)
bool operator!= (const ofPoint &pnt)
ofPointoperator= (const ofPoint &pnt)
ofPointoperator= (const float &val)
ofPoint operator+ (const ofPoint &pnt) const
ofPoint operator+ (const float &val) const
ofPointoperator+= (const ofPoint &pnt)
ofPointoperator+= (const float &val)
ofPoint operator- (const ofPoint &pnt) const
ofPoint operator- (const float &val) const
ofPointoperator-= (const ofPoint &pnt)
ofPointoperator-= (const float &val)
ofPoint operator* (const ofPoint &pnt) const
ofPoint operator* (const float &val) const
ofPointoperator*= (const ofPoint &pnt)
ofPointoperator*= (const float &val)
ofPoint operator/ (const ofPoint &pnt) const
ofPoint operator/ (const float &val) const
ofPointoperator/= (const ofPoint &pnt)
ofPointoperator/= (const float &val)

Public Attributes

union {
   struct {
      float   x
      float   y
      float   z
   } 
   float   v [3]
}; 

Constructor & Destructor Documentation

virtual ofPoint::~ofPoint (  ) [inline, virtual]
ofPoint::ofPoint ( float  _x = 0.0f,
float  _y = 0.0f,
float  _z = 0.0f 
) [inline]
ofPoint::ofPoint ( const ofPoint pnt ) [inline]

Member Function Documentation

bool ofPoint::operator!= ( const ofPoint pnt ) [inline]
ofPoint ofPoint::operator* ( const float &  val ) const [inline]
ofPoint ofPoint::operator* ( const ofPoint pnt ) const [inline]
ofPoint& ofPoint::operator*= ( const ofPoint pnt ) [inline]
ofPoint& ofPoint::operator*= ( const float &  val ) [inline]
ofPoint ofPoint::operator+ ( const float &  val ) const [inline]
ofPoint ofPoint::operator+ ( const ofPoint pnt ) const [inline]
ofPoint& ofPoint::operator+= ( const ofPoint pnt ) [inline]
ofPoint& ofPoint::operator+= ( const float &  val ) [inline]
ofPoint ofPoint::operator- (  ) const [inline]
ofPoint ofPoint::operator- ( const ofPoint pnt ) const [inline]
ofPoint ofPoint::operator- ( const float &  val ) const [inline]
ofPoint& ofPoint::operator-= ( const ofPoint pnt ) [inline]
ofPoint& ofPoint::operator-= ( const float &  val ) [inline]
ofPoint ofPoint::operator/ ( const ofPoint pnt ) const [inline]
ofPoint ofPoint::operator/ ( const float &  val ) const [inline]
ofPoint& ofPoint::operator/= ( const ofPoint pnt ) [inline]
ofPoint& ofPoint::operator/= ( const float &  val ) [inline]
ofPoint& ofPoint::operator= ( const ofPoint pnt ) [inline]
ofPoint& ofPoint::operator= ( const float &  val ) [inline]
bool ofPoint::operator== ( const ofPoint pnt ) [inline]
void ofPoint::set ( float  _x,
float  _y,
float  _z = 0 
) [inline]

Member Data Documentation

union { ... }
float ofPoint::v[3]
float ofPoint::x
float ofPoint::y
float ofPoint::z

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