Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

gutk::Point Class Reference

#include <point.h>

List of all members.


Detailed Description

A class encapsulating an order pair of doubles as a point.

All usefull operators are overloaded.


Public Member Functions

 Point (void)
 Default constructor.

 Point (double xcoord, double ycoord)
 Copy constructor.


Public Attributes

double x
 The x-coordinate of the point.

double y
 The y-coordinate of the point.


Friends

Point operator+ (const Point, const Point)
 Overloaded operator +.

Point operator- (const Point, const Point)
 Overloaded binary operator -.

Point operator * (const Point, const Point)
 Overloaded operator *.

Point operator- (const Point)
 Overloaded unary operator -.


Constructor & Destructor Documentation

gutk::Point::Point void   ) 
 

Default constructor.

Initialises the x member and y member to zero.


Friends And Related Function Documentation

Point operator * const  Point,
const  Point
[friend]
 

Overloaded operator *.

Multiplies the x members and y members of the two operands respectively and returns another Point object with this result.

Point operator+ const  Point,
const  Point
[friend]
 

Overloaded operator +.

Add the x members and y members of the two operands respectively and returns another Point object with this result.

Point operator- const  Point  )  [friend]
 

Overloaded unary operator -.

Returns the negetive of the inidivisual coordinates in another Point object.

Point operator- const  Point,
const  Point
[friend]
 

Overloaded binary operator -.

Subtracts the x member and y member of the second operand from the x and y members of the first operand respectively and returns another Point object with this result.


The documentation for this class was generated from the following file:
Generated on Mon Nov 22 11:12:41 2004 for ImprolaLib by doxygen 1.3.7