Lines Matching refs:point2
153 public function drawRoundedRectangle(Point $point1, Point $point2, $radius, Color $color, $lineWidth, $lineDotSize, ShadowProperties $shadowProperties) {
161 $X = cos(($i - 90) * M_PI / 180) * $radius + $point2->getX() - $radius;
165 $X = cos(($i) * M_PI / 180) * $radius + $point2->getX() - $radius;
166 $Y = sin(($i) * M_PI / 180) * $radius + $point2->getY() - $radius;
170 $Y = sin(($i + 90) * M_PI / 180) * $radius + $point2->getY() - $radius;
176 $X2 = $point2->getX() + .2;
177 $Y2 = $point2->getY() + .2;
219 function drawFilledRoundedRectangle(Point $point1, Point $point2, $radius,
236 + $point2->getX()
244 + $point2->getX()
248 + $point2->getY()
256 + $point2->getY()
267 $this->picture, $point2->getX() - $radius, $Yi2,
274 $point2->getX() - $radius, $Yi3,
311 $point2->getX(), $point2->getY() - $radius,
318 $point2->getX() - $radius, $point2->getY(),
324 $X2 = $point2->getX() + .2;
325 $Y2 = $point2->getY() + .2;
360 public function drawLine(Point $point1, Point $point2, Color $color, $lineWidth, $lineDotSize, ShadowProperties $shadowProperties, Point $boundingBoxMin = null, Point $boundingBoxMax = null) {
364 $point2,
373 $Distance = $point1->distanceFrom($point2);
376 $XStep = ($point2->getX() - $point1->getX()) / $Distance;
377 $YStep = ($point2->getY() - $point1->getY()) / $Distance;
403 public function drawDottedLine(Point $point1, Point $point2, $dotSize, $lineWidth, Color $color, ShadowProperties $shadowProperties, Point $boundingBoxMin = null, Point $boundingBoxMax = null) {
404 $Distance = $point1->distanceFrom($point2);
406 $XStep = ($point2->getX() - $point1->getX()) / $Distance;
407 $YStep = ($point2->getY() - $point1->getY()) / $Distance;