00001
00002
00004
00005 #if !defined(AFX_SL_GRIDCELL_H__BBE5864F_410D_4411_94F4_B0A89C14C252__INCLUDED_)
00006 #define AFX_SL_GRIDCELL_H__BBE5864F_410D_4411_94F4_B0A89C14C252__INCLUDED_
00007
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011
00012
00013 #include <vector>
00014 #include <algorithm>
00015
00016 #include "misc.h"
00017
00018 using namespace std;
00019
00020 class SL_GridCell
00021 {
00022
00023 public:
00024 SL_GridCell();
00025 virtual ~SL_GridCell();
00026
00027 void add( const Vec2f dotPtr );
00028
00029
00033
00034
00038
00039 bool AllowSetPointInCell( const Vec2f dotPtr, float fDistSqr );
00040
00041 public:
00043
00044
00045
00046 bool static AcceptDistanceDot2Dot( const Vec2f dot1,
00047 const Vec2f dot2,
00048 float fDistSqr );
00049
00050 public:
00051
00052 vector< Vec2f > elementList;
00053
00054 };
00055
00056 #endif // !defined(AFX_SL_GRIDCELL_H__BBE5864F_410D_4411_94F4_B0A89C14C252__INCLUDED_)