Do not use Util::pow with sqrt

Using bigger precision and passing it to standard precision makes no
sense.

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-09-27 09:28:35 +02:00
parent 5508f29ef9
commit e8ddbd30eb

View File

@ -538,10 +538,7 @@ class GISPolygon extends GISGeometry
// Always keep $epsilon < 1 to go with the reduction logic down here
$epsilon = 0.1;
$denominator = sqrt(
Util::pow(($y1 - $y0), 2)
+ Util::pow(($x0 - $x1), 2)
);
$denominator = sqrt(pow(($y1 - $y0), 2) + pow(($x0 - $x1), 2));
$pointA = array();
$pointB = array();