Gel2D - The free/open source game creation suite

Public Member Functions | Public Attributes
gel::GelPoint Class Reference

#include <gelSize.h>

List of all members.

Public Member Functions

 GelPoint ()
 Default constructor.
 GelPoint (int n)
 Single value constructor.
 GelPoint (int _x, int _y)
 Full constructor.
 GelPoint (const GelPoint &point)
 Copy constructor.
GelPoint operator+ (const GelPoint &p) const
GelPoint operator- (const GelPoint &p) const
GelPoint operator* (const GelPoint &p) const
GelPoint operator/ (const GelPoint &p) const
GelPoint operator= (const GelPoint &p)
GelPoint operator+= (const GelPoint &p)
GelPoint operator-= (const GelPoint &p)
GelPoint operator*= (const GelPoint &p)
GelPoint operator/= (const GelPoint &p)
bool operator== (const GelPoint &p) const
bool operator!= (const GelPoint &p) const
bool operator< (const GelPoint &p) const
bool operator> (const GelPoint &p) const

Public Attributes

int x
 X coordinate.
int y
 Y coordinate.

Constructor & Destructor Documentation

gel::GelPoint::GelPoint ( ) [inline]

Default constructor.

x and y are set to 0.

gel::GelPoint::GelPoint ( int  n) [inline]

Single value constructor.

Parameters:
n: Value to use for the point's x and y coordinates.
gel::GelPoint::GelPoint ( int  _x,
int  _y 
) [inline]

Full constructor.

Parameters:
_x: The point's x coordinate.
_y: The point's y coordinate.
gel::GelPoint::GelPoint ( const GelPoint point) [inline]

Copy constructor.


Member Function Documentation

GelPoint gel::GelPoint::operator+ ( const GelPoint p) const [inline]
GelPoint gel::GelPoint::operator- ( const GelPoint p) const [inline]
GelPoint gel::GelPoint::operator* ( const GelPoint p) const [inline]
GelPoint gel::GelPoint::operator/ ( const GelPoint p) const [inline]
GelPoint gel::GelPoint::operator= ( const GelPoint p) [inline]
GelPoint gel::GelPoint::operator+= ( const GelPoint p) [inline]
GelPoint gel::GelPoint::operator-= ( const GelPoint p) [inline]
GelPoint gel::GelPoint::operator*= ( const GelPoint p) [inline]
GelPoint gel::GelPoint::operator/= ( const GelPoint p) [inline]
bool gel::GelPoint::operator== ( const GelPoint p) const [inline]
bool gel::GelPoint::operator!= ( const GelPoint p) const [inline]
bool gel::GelPoint::operator< ( const GelPoint p) const [inline]
bool gel::GelPoint::operator> ( const GelPoint p) const [inline]

Member Data Documentation

X coordinate.

Y coordinate.


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