115 QPointF center; |
115 QPointF center; |
116 qreal radius; |
116 qreal radius; |
117 }; |
117 }; |
118 |
118 |
119 /** |
119 /** |
120 * @param center |
120 * @brief Inscribes a circle |
121 * @param radius |
121 * @param circle |
122 * @returns a QRectF that encloses the specified circle |
122 * @return a QRectF that inscribes the specified circle |
123 */ |
123 */ |
124 inline constexpr QRectF inscribe(const CircleF& circle) |
124 inline constexpr QRectF inscribe(const CircleF& circle) |
125 { |
125 { |
126 return { |
126 return { |
127 circle.center.x() - circle.radius, |
127 circle.center.x() - circle.radius, |