fix: quantity_point converting constructor fixed to account for different offsets of point origins

This commit is contained in:
Mateusz Pusz
2023-06-30 17:34:47 +01:00
parent d820cfe6cf
commit 66a24e47c7

View File

@@ -115,7 +115,7 @@ public:
template<QuantityPointOf<absolute_point_origin> QP> template<QuantityPointOf<absolute_point_origin> QP>
requires std::constructible_from<quantity_type, typename QP::quantity_type> requires std::constructible_from<quantity_type, typename QP::quantity_type>
constexpr explicit(!std::convertible_to<typename QP::quantity_type, quantity_type>) quantity_point(const QP& qp) : constexpr explicit(!std::convertible_to<typename QP::quantity_type, quantity_type>) quantity_point(const QP& qp) :
q_(qp.relative()) q_(qp.relative() + QP::zero() - zero())
{ {
} }