Skip to content
Snippets Groups Projects
Commit c65ce967 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

getOrientation return a const reference

parent a42d0007
No related branches found
No related tags found
No related merge requests found
...@@ -105,23 +105,23 @@ struct BVNode : public BVNodeBase ...@@ -105,23 +105,23 @@ struct BVNode : public BVNodeBase
Vec3f getCenter() const { return bv.center(); } Vec3f getCenter() const { return bv.center(); }
/// @brief Access the orientation of the BV /// @brief Access the orientation of the BV
Matrix3f getOrientation() const { return Matrix3f::Identity(); } const Matrix3f& getOrientation() const { return Matrix3f::Identity(); }
}; };
template<> template<>
inline Matrix3f BVNode<OBB>::getOrientation() const inline const Matrix3f& BVNode<OBB>::getOrientation() const
{ {
return bv.axes; return bv.axes;
} }
template<> template<>
inline Matrix3f BVNode<RSS>::getOrientation() const inline const Matrix3f& BVNode<RSS>::getOrientation() const
{ {
return bv.axes; return bv.axes;
} }
template<> template<>
inline Matrix3f BVNode<OBBRSS>::getOrientation() const inline const Matrix3f& BVNode<OBBRSS>::getOrientation() const
{ {
return bv.obb.axes; return bv.obb.axes;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment