mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
704 B
C++
35 lines
704 B
C++
3 years ago
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_AGENTBOUNDS_H
|
||
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_AGENTBOUNDS_H
|
||
|
|
||
|
#include "collisionshapetype.hpp"
|
||
|
|
||
|
#include <osg/Vec3f>
|
||
|
|
||
|
#include <tuple>
|
||
|
|
||
|
namespace DetourNavigator
|
||
|
{
|
||
|
struct AgentBounds
|
||
|
{
|
||
|
CollisionShapeType mShapeType;
|
||
|
osg::Vec3f mHalfExtents;
|
||
|
};
|
||
|
|
||
|
inline auto tie(const AgentBounds& value)
|
||
|
{
|
||
|
return std::tie(value.mShapeType, value.mHalfExtents);
|
||
|
}
|
||
|
|
||
|
inline bool operator==(const AgentBounds& lhs, const AgentBounds& rhs)
|
||
|
{
|
||
|
return tie(lhs) == tie(rhs);
|
||
|
}
|
||
|
|
||
|
inline bool operator<(const AgentBounds& lhs, const AgentBounds& rhs)
|
||
|
{
|
||
|
return tie(lhs) < tie(rhs);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|