4 Node::Node(
int grid_x,
int grid_y,
LVecBase3 pos,
float w,
float l,
float h) {
5 for(
int i = 0; i < 8; ++i) {
36 if(_position.get_x() - _width / 2 <= x && _position.get_x() + _width / 2 >= x &&
37 _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...