Skip to content
Snippets Groups Projects
Commit 96d4d1e1 authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

added missing getVolume function to box

parent b7d1b183
No related merge requests found
......@@ -83,6 +83,7 @@ public:
/*!\name Get functions */
//@{
inline const Vec3& getLengths() const;
virtual inline real_t getVolume() const;
//@}
//**********************************************************************************************
......@@ -306,7 +307,16 @@ inline const Vec3& Box::getLengths() const
}
//*************************************************************************************************
//*************************************************************************************************
/*!\brief Returns the volume of the box.
*
* \return The volume of the box.
*/
inline real_t Box::getVolume() const
{
return Box::calcVolume(getLengths());
}
//*************************************************************************************************
//=================================================================================================
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment