Lines Matching defs:radius

153     public function drawRoundedRectangle(Point $point1, Point $point2, $radius, Color $color, $lineWidth, $lineDotSize, ShadowProperties $shadowProperties) {
154 $Step = 90 / ((M_PI * $radius) / 2);
157 $X = cos(($i + 180) * M_PI / 180) * $radius + $point1->getX() + $radius;
158 $Y = sin(($i + 180) * M_PI / 180) * $radius + $point1->getY() + $radius;
161 $X = cos(($i - 90) * M_PI / 180) * $radius + $point2->getX() - $radius;
162 $Y = sin(($i - 90) * M_PI / 180) * $radius + $point1->getY() + $radius;
165 $X = cos(($i) * M_PI / 180) * $radius + $point2->getX() - $radius;
166 $Y = sin(($i) * M_PI / 180) * $radius + $point2->getY() - $radius;
169 $X = cos(($i + 90) * M_PI / 180) * $radius + $point1->getX() + $radius;
170 $Y = sin(($i + 90) * M_PI / 180) * $radius + $point2->getY() - $radius;
179 new Point($X1 + $radius, $Y1),
180 new Point($X2 - $radius, $Y1),
188 new Point($X2, $Y1 + $radius),
189 new Point($X2, $Y2 - $radius),
197 new Point($X2 - $radius, $Y2),
198 new Point($X1 + $radius, $Y2),
206 new Point($X1, $Y2 - $radius),
207 new Point($X1, $Y1 + $radius),
219 function drawFilledRoundedRectangle(Point $point1, Point $point2, $radius,
224 $Step = 90 / ((M_PI * $radius) / 2);
227 $Xi1 = cos(($i + 180) * M_PI / 180) * $radius
229 + $radius;
231 $Yi1 = sin(($i + 180) * M_PI / 180) * $radius
233 + $radius;
235 $Xi2 = cos(($i - 90) * M_PI / 180) * $radius
237 - $radius;
239 $Yi2 = sin(($i - 90) * M_PI / 180) * $radius
241 + $radius;
243 $Xi3 = cos(($i) * M_PI / 180) * $radius
245 - $radius;
247 $Yi3 = sin(($i) * M_PI / 180) * $radius
249 - $radius;
251 $Xi4 = cos(($i + 90) * M_PI / 180) * $radius
253 + $radius;
255 $Yi4 = sin(($i + 90) * M_PI / 180) * $radius
257 - $radius;
262 $point1->getX() + $radius, $Yi1,
267 $this->picture, $point2->getX() - $radius, $Yi2,
274 $point2->getX() - $radius, $Yi3,
282 $point1->getX() + $radius, $Yi4,
310 $point1->getX(), $point1->getY() + $radius,
311 $point2->getX(), $point2->getY() - $radius,
317 $point1->getX() + $radius, $point1->getY(),
318 $point2->getX() - $radius, $point2->getY(),
327 new Point($X1 + $radius, $Y1),
328 new Point($X2 - $radius, $Y1),
335 new Point($X2, $Y1 + $radius),
336 new Point($X2, $Y2 - $radius),
343 new Point($X2 - $radius, $Y2),
344 new Point($X1 + $radius, $Y2),
351 new Point($X1, $Y2 - $radius),
352 new Point($X1, $Y1 + $radius),