00001
00002
00003
00004 #pragma once
00005 #include <iostream>
00006 using namespace std;
00008 namespace Recognition{
00012 class gNode
00013 {
00014 public:
00015
00016 gNode(double x,double y)
00017 {
00018 t=NULL;
00019 b=NULL;
00020 l=NULL;
00021 r=NULL;
00022 this->x=x;
00023 this->y=y;
00024 }
00026 gNode *t;
00028 gNode *b;
00030 gNode *l;
00032 gNode *r;
00034 double x;
00036 double y;
00038 void swap(gNode *that){
00039 double xt=x;
00040 double yt=y;
00041 x=that->x;
00042 y=that->y;
00043 that->x=xt;
00044 that->y=yt;
00045 }
00046
00047 };
00048 }