ubit
Public Member Functions | Public Attributes | Friends | List of all members
ubit::UPoint Class Reference

2D Point. More...

#include <ugeom.hpp>

Public Member Functions

 UPoint (float _x, float _y)
 
float getX () const
 
float getY () const
 
void set (float _x, float _y)
 
void set (const UPoint &p)
 

Public Attributes

float x
 
float y
 

Friends

std::ostream & operator<< (std::ostream &, const UPoint &)
 prints the point on an output stream (eg: cout << point).
 
std::istream & operator>> (std::istream &, UPoint &)
 reads the point from an input stream (eg: cin >> point).
 

Detailed Description

2D Point.


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