Public Member Functions | Public Attributes

wit::Point Class Reference

#include <wit/geometry.h>

List of all members.

Public Member Functions

 Point ()
 Point (const Point &other)
 Point (float x, float y)
Pointoperator= (const Point &other)

Public Attributes

float x
float y

Detailed Description

The Point class describes a two-dimensional coordinate pair.

Definition at line 6 of file geometry.h.


Constructor & Destructor Documentation

wit::Point::Point (  )

Creates a new Point object at (0, 0).

Definition at line 28 of file geometry.cpp.

wit::Point::Point ( const Point other )

Creates a new Point object with the same coordinates as other.

Definition at line 36 of file geometry.cpp.

wit::Point::Point ( float  x,
float  y 
)

Creates a new Point object at (x, y).

Definition at line 44 of file geometry.cpp.


Member Function Documentation

Point & wit::Point::operator= ( const Point other )

Copies the coordinates of other to this object.

Definition at line 52 of file geometry.cpp.


Member Data Documentation

The x coordinate of the point.

Definition at line 13 of file geometry.h.

The y coordinate of the point.

Definition at line 13 of file geometry.h.


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