Lines Matching defs:point1
153 public function drawRoundedRectangle(Point $point1, Point $point2, $radius, Color $color, $lineWidth, $lineDotSize, ShadowProperties $shadowProperties) {
157 $X = cos(($i + 180) * M_PI / 180) * $radius + $point1->getX() + $radius;
158 $Y = sin(($i + 180) * M_PI / 180) * $radius + $point1->getY() + $radius;
162 $Y = sin(($i - 90) * M_PI / 180) * $radius + $point1->getY() + $radius;
169 $X = cos(($i + 90) * M_PI / 180) * $radius + $point1->getX() + $radius;
174 $X1 = $point1->getX() - .2;
175 $Y1 = $point1->getY() - .2;
219 function drawFilledRoundedRectangle(Point $point1, Point $point2, $radius,
228 + $point1->getX()
232 + $point1->getY()
240 + $point1->getY()
252 + $point1->getX()
262 $point1->getX() + $radius, $Yi1,
282 $point1->getX() + $radius, $Yi4,
310 $point1->getX(), $point1->getY() + $radius,
317 $point1->getX() + $radius, $point1->getY(),
322 $X1 = $point1->getX() - .2;
323 $Y1 = $point1->getY() - .2;
360 public function drawLine(Point $point1, Point $point2, Color $color, $lineWidth, $lineDotSize, ShadowProperties $shadowProperties, Point $boundingBoxMin = null, Point $boundingBoxMax = null) {
363 $point1,
373 $Distance = $point1->distanceFrom($point2);
376 $XStep = ($point2->getX() - $point1->getX()) / $Distance;
377 $YStep = ($point2->getY() - $point1->getY()) / $Distance;
380 $X = $i * $XStep + $point1->getX();
381 $Y = $i * $YStep + $point1->getY();
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;
411 $X = $i * $XStep + $point1->getX();
412 $Y = $i * $YStep + $point1->getY();