| Linderdaum Engine: cl2DUniformGrid< T > Class Template Reference | ![]() |
#include <2DUniformGrid.h>
Classes | |
| struct | sGridCell |
Public Member Functions | |
| cl2DUniformGrid (float SizeX, float SizeY, float GranX, float GranY) | |
| ~cl2DUniformGrid () | |
| void | AddToGrid (const LVector2 &Pos, T *Object, float Radius) |
| void | RemoveFromGrid (const LVector2 &Pos, T *Object, float Radius) |
| void | CreateClosestObjectsList (const LVector2 &Pos, float Radius) |
| T * | GetClosestObject (int Index) const |
| int | GetClosestObjectsCount () const |
Private Attributes | |
| LArray< T * > | FClosestObjects |
| LArray< sGridCell > | FGridCells |
| int | FCellsX |
| int | FCellsY |
| float | FGranX |
| float | FGranY |
| int | FPrevCenterCellIndex |
| int | FPrevDx |
| int | FPrevDy |
| cl2DUniformGrid< T >::cl2DUniformGrid | ( | float | SizeX, |
| float | SizeY, | ||
| float | GranX, | ||
| float | GranY | ||
| ) | [inline] |
| cl2DUniformGrid< T >::~cl2DUniformGrid | ( | ) | [inline] |
| void cl2DUniformGrid< T >::AddToGrid | ( | const LVector2 & | Pos, |
| T * | Object, | ||
| float | Radius | ||
| ) |
| void cl2DUniformGrid< T >::CreateClosestObjectsList | ( | const LVector2 & | Pos, |
| float | Radius | ||
| ) |
| T* cl2DUniformGrid< T >::GetClosestObject | ( | int | Index | ) | const [inline] |
| int cl2DUniformGrid< T >::GetClosestObjectsCount | ( | ) | const [inline] |
| void cl2DUniformGrid< T >::RemoveFromGrid | ( | const LVector2 & | Pos, |
| T * | Object, | ||
| float | Radius | ||
| ) |
int cl2DUniformGrid< T >::FCellsX [private] |
int cl2DUniformGrid< T >::FCellsY [private] |
LArray<T*> cl2DUniformGrid< T >::FClosestObjects [private] |
float cl2DUniformGrid< T >::FGranX [private] |
float cl2DUniformGrid< T >::FGranY [private] |
LArray<sGridCell> cl2DUniformGrid< T >::FGridCells [private] |
int cl2DUniformGrid< T >::FPrevCenterCellIndex [private] |
int cl2DUniformGrid< T >::FPrevDx [private] |
int cl2DUniformGrid< T >::FPrevDy [private] |