Go to the documentation of this file.00001
00002 #ifndef __Coord1D__
00003 #define __Coord1D__
00004
00005
00006 #include "Coord.hpp"
00007 #include <stdio.h>
00008
00009
00011
00018 class Coord1D: public Coord
00019 {
00020
00021 public:
00022
00026 Coord1D(void) : Coord(1)
00027 {
00028
00029 }
00030
00035 Coord1D(double x) : Coord(1)
00036 {
00037 cambia(x);
00038 }
00039
00040
00041
00046 void cambia(double x)
00047 {
00048 X[0] = x;
00049 }
00050
00055 double retornaX(void)
00056 {
00057 return X[0];
00058 }
00059
00060 };
00061
00062 #endif