vdk 2.4.0
Public Member Functions | Public Attributes | List of all members
VDKPoint Class Reference

Provides a simple point object. More...

#include <vdkutils.h>

Public Member Functions

 VDKPoint ()
 
 VDKPoint (int _x, int _y)
 
virtual ~VDKPoint ()
 
int operator== (VDKPoint &p) const
 
int operator!= (VDKPoint &p) const
 
VDKPoint OffsetBy (int dx, int dy) const
 
VDKPoint operator- () const
 
VDKPointOffset (int dx, int dy)
 

Public Attributes

int x
 

Detailed Description

Provides a simple point object.

Constructor & Destructor Documentation

VDKPoint::VDKPoint ( )
inline

Constructor, make a point with 0,0 coordinates

VDKPoint::VDKPoint ( int  _x,
int  _y 
)
inline

Constructor

Parameters
_xx coordinate
_yy coordinate
virtual VDKPoint::~VDKPoint ( )
inlinevirtual

Destructor

Member Function Documentation

VDKPoint& VDKPoint::Offset ( int  dx,
int  dy 
)

Modify this with an offset

Parameters
dxx offset
dyy offset
VDKPoint VDKPoint::OffsetBy ( int  dx,
int  dy 
) const
inline

Returns an offset point

Parameters
dxx offset
dyy offset
int VDKPoint::operator!= ( VDKPoint p) const
inline

Disequality operator

VDKPoint VDKPoint::operator- ( ) const
inline

Return simmetric point in plane

int VDKPoint::operator== ( VDKPoint p) const
inline

Equality operator

Member Data Documentation

int VDKPoint::x

x,y coordinates


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