Exemple #1
0
<?php

require_once getenv("DOCUMENT_ROOT") . "/lib/config.php";
require_once "ArcColor.php";
$arc = new Arc(15, 27, 38);
$arcColor = new ArcColor(10, 12, 18);
echo $arcColor->getArc($arcColor) . "<br/>";
echo $arcColor->getArc($arc) . "<br/>";
Exemple #2
0
<?php

require_once getenv("DOCUMENT_ROOT") . "/lib/config.php";
require_once "ArcColor.php";
$arc = new Arc();
$arc->setX(9);
$arc->setY(15);
$arc->setR(12);
$arc2 = new Arc(6, 5, 8);
echo $arc->getArc($arc2) . "<br/>";
echo $arc->getObj($arc2) . "<br/>";
echo "Получаем X = " . $arc->getX($x) . "<br/>";
echo "Получаем Y = " . $arc->getY($x) . "<br/>";
echo "Получаем R= " . $arc->getR($x) . "<br/>";
$arcColor = new ArcColor(5, 4, 8, "red");
$arcColor->setColor("Blue");
echo $arcColor->getColor() . "<br/>";
$arcColor->setY(10);
echo $arcColor->getY() . "<br/>";