From 057a7ffe603a3a5de3b855725c01840c21426358 Mon Sep 17 00:00:00 2001 From: Peter LaValle Date: Wed, 14 May 2014 14:16:53 +0100 Subject: [PATCH] added a lt operator to the inline added a lt operator to the inline, so that I can use aiVectors as stl keys and such --- include/assimp/vector3.inl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/assimp/vector3.inl b/include/assimp/vector3.inl index 63c91480a..242a03a60 100644 --- a/include/assimp/vector3.inl +++ b/include/assimp/vector3.inl @@ -149,6 +149,11 @@ AI_FORCE_INLINE bool aiVector3t::operator!= (const aiVector3t& oth } // ------------------------------------------------------------------------------------------------ template +AI_FORCE_INLINE bool aiVector3t::operator < (const aiVector3t& other) const { + return x != other.x ? x < other.x : y != other.y ? y < other.y : z < other.z; +} +// ------------------------------------------------------------------------------------------------ +template AI_FORCE_INLINE const aiVector3t aiVector3t::SymMul(const aiVector3t& o) { return aiVector3t(x*o.x,y*o.y,z*o.z); }