19#ifndef HEADER_ARENA_NODE_HPP
20#define HEADER_ARENA_NODE_HPP
22#include "tracks/quad.hpp"
23#include "utils/cpp2011.hpp"
36 std::vector<int> m_adjacent_nodes;
38 std::vector<int> m_nearby_nodes;
42 const Vec3 &normal,
unsigned int node_index);
46 const std::vector<int>& getAdjacentNodes() {
return m_adjacent_nodes; }
48 std::vector<int>* getNearbyNodes() {
return &m_nearby_nodes; }
50 void setAdjacentNodes(
const std::vector<int>& nodes)
52 m_adjacent_nodes = nodes;
55 void setNearbyNodes(
const std::vector<int>& nodes)
57 m_nearby_nodes = nodes;
63 bool isNearEdge()
const {
return m_adjacent_nodes.size() != 4; }
Definition: arena_node.hpp:32
virtual float getDistance2FromPoint(const Vec3 &xyz) const OVERRIDE
Returns the square of the distance between the given point and any point on the 'centre' line,...
Definition: arena_node.cpp:41
bool isNearEdge() const
Returns true if the quad lies near the edge, which means it doesn't have 4 adjacent quads.
Definition: arena_node.hpp:63
A wrapper around bullets btVector3 to include conventient conversion functions (e....
Definition: vec3.hpp:35