commit
0f71d46c35
|
@ -88,6 +88,7 @@ public:
|
||||||
// comparison
|
// comparison
|
||||||
bool operator== (const aiVector3t& other) const;
|
bool operator== (const aiVector3t& other) const;
|
||||||
bool operator!= (const aiVector3t& other) const;
|
bool operator!= (const aiVector3t& other) const;
|
||||||
|
bool operator < (const aiVector3t& other) const;
|
||||||
|
|
||||||
bool Equal(const aiVector3t& other, TReal epsilon = 1e-6) const;
|
bool Equal(const aiVector3t& other, TReal epsilon = 1e-6) const;
|
||||||
|
|
||||||
|
|
|
@ -159,6 +159,11 @@ AI_FORCE_INLINE bool aiVector3t<TReal>::Equal(const aiVector3t<TReal>& other, TR
|
||||||
}
|
}
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
template <typename TReal>
|
template <typename TReal>
|
||||||
|
AI_FORCE_INLINE bool aiVector3t<TReal>::operator < (const aiVector3t<TReal>& other) const {
|
||||||
|
return x != other.x ? x < other.x : y != other.y ? y < other.y : z < other.z;
|
||||||
|
}
|
||||||
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
template <typename TReal>
|
||||||
AI_FORCE_INLINE const aiVector3t<TReal> aiVector3t<TReal>::SymMul(const aiVector3t<TReal>& o) {
|
AI_FORCE_INLINE const aiVector3t<TReal> aiVector3t<TReal>::SymMul(const aiVector3t<TReal>& o) {
|
||||||
return aiVector3t<TReal>(x*o.x,y*o.y,z*o.z);
|
return aiVector3t<TReal>(x*o.x,y*o.y,z*o.z);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue