Skip to content

Commit

Permalink
Use const instead of constexpr in Ellipsoid constructor
Browse files Browse the repository at this point in the history
Signed-off-by: Ashton Larkin <[email protected]>
  • Loading branch information
adlarkin committed Jan 13, 2022
1 parent fa67ea8 commit c4a050f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ignition/math/detail/Ellipsoid.hh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ std::optional< MassMatrix3<T> > Ellipsoid<T>::MassMatrix() const
template<typename T>
T Ellipsoid<T>::Volume() const
{
constexpr T kFourThirdsPi = 4. * IGN_PI / 3.;
const T kFourThirdsPi = 4. * IGN_PI / 3.;
return kFourThirdsPi * this->radii.X() * this->radii.Y() * this->radii.Z();
}

Expand Down

0 comments on commit c4a050f

Please sign in to comment.