SDL++
C++wrapperfortheSDLlibrary.

misc/Coordinate.h

Go to the documentation of this file.
00001 
00021 #ifndef SDL_MISC_COORDINATE_h
00022 #define SDL_MISC_COORDINATE_h
00023 
00024 namespace sdl {
00025 namespace misc {
00032     template<typename T>
00033     struct Coordinate {
00040         Coordinate (T x, T y) : x_ (x), y_ (y) {};
00041 
00047         T x () const { return x_; };
00048 
00054         T y () const { return y_; };
00055 
00056         private:
00060             T x_;
00061 
00065             T y_;
00066     }; //Coordinate
00067 }; //misc
00068 }; //sdl
00069 
00070 #endif //SDL_MISC_COORDINATE_h
00071 
 All Classes Namespaces Files Functions Variables Typedefs