Steeriously  0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
BehaviorHelpers.hpp
1 #ifndef GROUPBEHAVIORHELPERS_HPP
2 #define GROUPBEHAVIORHELPERS_HPP
3 
4 #include <vector>
5 #include <steeriously/Vector2.hpp>
6 
7 namespace steer //namespace steeriously
8 {
9 
18 template <class T, class conT>
19 void TagVehiclesWithinViewRange(const T& entity, const conT& neighbors, float viewDistance);
20 
29 template <class T, class conT>
30 void TagObstaclesWithinViewRange(const T& entity, const conT& obstacles, float boxLength);
31 
40 template <class T, class conT>
41 void TagNeighbors(const T& entity, const conT& neighbors, float radius);
42 
51 template <class T, class conT>
52 void TagObstacles(const T& entity, const conT& obstacles, float radius);
53 
64 inline bool TwoCirclesOverlapped(float x1, float y1, float r1, float x2, float y2, float r2);
65 
74 inline bool TwoCirclesOverlapped(Vector2 c1, float r1, Vector2 c2, float r2);
75 
84 template <class T, class conT>
85 bool Overlapped(const T* ob, const conT& conOb, float MinDistBetweenObstacles);
86 
87 } //namespace steeriously
88 
89 #include <steeriously/BehaviorHelpers.inl>
90 
91 #endif // GROUPBEHAVIORHELPERS_HPP