Helpers   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A distanceBetweenPoints() 0 3 1
1
<?php
2
3
namespace Hotrush\Polarcy;
4
5
class Helpers
6
{
7
    /**
8
     * @param Point $point1
9
     * @param Point $point2
10
     * @return float
11
     */
12
    public static function distanceBetweenPoints(Point $point1, Point $point2)
13
    {
14
        return sqrt(pow($point1->x() - $point2->x(), 2) + pow($point1->y() - $point2->y(), 2));
15
    }
16
}