TrinityCore
Loading...
Searching...
No Matches
RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc, PositionFunc >::Cell Struct Reference

#include <RegularGrid.h>

Public Member Functions

bool operator== (Cell const &c2) const
 
bool isValid () const
 

Static Public Member Functions

static Cell ComputeCell (float fx, float fy)
 

Public Attributes

int x
 
int y
 

Detailed Description

template<class T, class Node, class NodeCreatorFunc = NodeCreator<Node>, class BoundsFunc = BoundsTrait<T>, class PositionFunc = PositionTrait<T>>
struct RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc, PositionFunc >::Cell

Definition at line 103 of file RegularGrid.h.

Member Function Documentation

◆ ComputeCell()

template<class T , class Node , class NodeCreatorFunc = NodeCreator<Node>, class BoundsFunc = BoundsTrait<T>, class PositionFunc = PositionTrait<T>>
static Cell RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc, PositionFunc >::Cell::ComputeCell ( float  fx,
float  fy 
)
inlinestatic

Definition at line 111 of file RegularGrid.h.

References CELL_SIZE.

◆ isValid()

template<class T , class Node , class NodeCreatorFunc = NodeCreator<Node>, class BoundsFunc = BoundsTrait<T>, class PositionFunc = PositionTrait<T>>
bool RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc, PositionFunc >::Cell::isValid ( ) const
inline

◆ operator==()

template<class T , class Node , class NodeCreatorFunc = NodeCreator<Node>, class BoundsFunc = BoundsTrait<T>, class PositionFunc = PositionTrait<T>>
bool RegularGrid2D< T, Node, NodeCreatorFunc, BoundsFunc, PositionFunc >::Cell::operator== ( Cell const &  c2) const
inline

Member Data Documentation

◆ x

◆ y


The documentation for this struct was generated from the following file: