diff --git a/src/Physics/Capsule.h b/src/Physics/Capsule.h index 7880a7102..b40a33b4f 100644 --- a/src/Physics/Capsule.h +++ b/src/Physics/Capsule.h @@ -71,7 +71,7 @@ template class MAGNUM_PHYSICS_EXPORT Capsule: public Abs /** @brief End point */ inline typename DimensionTraits::VectorType b() const { - return _a; + return _b; } /** @brief Set start point */ diff --git a/src/Physics/Line.h b/src/Physics/Line.h index bfb9bdceb..49e835c3c 100644 --- a/src/Physics/Line.h +++ b/src/Physics/Line.h @@ -66,7 +66,7 @@ template class MAGNUM_PHYSICS_EXPORT Line: public Abstra /** @brief Second point */ inline typename DimensionTraits::VectorType b() const { - return _a; + return _b; } /** @brief Set first point */