PHP Classes

How to use this class

Recommend this page to a friend!

      PHP Circles Intersection  >  All threads  >  How to use this class  >  (Un) Subscribe thread alerts  
Subject:How to use this class
Summary:Undefined offset: 0
Messages:1
Author:Kamil Czaja
Date:2016-09-17 09:12:20
 

  1. How to use this class   Reply   Report abuse  
Picture of Kamil Czaja Kamil Czaja - 2016-09-17 09:12:20
I don't know how to use this class.
I have this code:

$class1 = new IntersectionPointsOf2Circles(2, 3, 3, 1, -1, 4);
$points = $class1->getPoints();

and I don't know how to show each intersection point.
When i try this:

echo $points[0]['x'];

I get error: Undefined offset: 0

I've tried everything and I'll passed:(
Can anybody help me?