17 AINode::AINode(
int grid_x,
int grid_y,
LVecBase3 pos,
float w,
float l,
float h) {
18 for (
int i = 0; i < 8; ++i) {
19 _neighbours[i] = NULL;
46 if (_position.get_x() - _width / 2 <= x && _position.get_x() + _width / 2 >= x &&
47 _position.get_y() - _length / 2 <= y && _position.get_y() + _length / 2 >= y) {
This is the base class for all three-component vectors and points.
bool contains(float x, float y)
This is a handy function which returns true if the passed position is within the node's dimensions...