src/geometry.h

changeset 109
40a1cf2f38f5
parent 108
94c92c923713
child 115
ed884a2fb009
equal deleted inserted replaced
108:94c92c923713 109:40a1cf2f38f5
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,

mercurial