<?php
require_once("IntersectionPointsOf2Circles.php");
/*
example:
lets find intersection points of 2 circles which have the following equations:
(x-2)^2 + (y-3)^2 = 9
(x-1)^2 + (y+1)^2 = 16
*/
$class1 = new IntersectionPointsOf2Circles(2, 3, 3, 1, -1, 4);
$points = $class1->getPoints();
print_r($points);
/*
Array
(
[0] => Array
(
[x] => 4.3679314115258
[y] => 1.1580171471185
)
[1] => Array
(
[x] => -0.95616670564347
[y] => 2.4890416764109
)
)
*/
?>
|