Point.hh

00001 /**********************************************************************
00002  * blaRAY -- photon mapper/raytracer
00003  * (C) 2008 by Tomasz bla Fortuna <bla@thera.be>, <bla@af.gliwice.pl>
00004  *
00005  * This program is free software: you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation, either version 3 of the License, or
00008  * any later version.
00009  *
00010  * See Docs/LICENSE
00011  *********************/
00012 
00013 #ifndef _POINT_H_
00014 #define _POINT_H_
00015 
00016 #include <utility>
00017 #include "General/Types.hh"
00018 
00019 namespace Math {
00028         class Point : public std::pair<Double, Double> {
00029         public:
00031                 Point(Double U, Double V)
00032                         : std::pair<Double, Double>(U, V) {}
00033 
00034 
00036                 inline Double GetU() const
00037                 {
00038                         return first;
00039                 }
00040 
00041                 inline Double GetV() const
00042                 {
00043                         return second;
00044                 }
00045 
00046                 inline void SetU(Double u)
00047                 {
00048                         first = u;
00049                 }
00050 
00051                 inline void SetV(Double v)
00052                 {
00053                         second = v;
00054                 }
00056         };
00057 }
00058 
00059 #endif

Generated on Wed Mar 12 00:34:58 2008 for blaRAY by  doxygen 1.5.5