Commit b372f9c8 authored by Darafei Praliaskouski's avatar Darafei Praliaskouski

interpolate_point4d: PARANOIA check should be on raw value instead of absolute


git-svn-id: http://svn.osgeo.org/postgis/trunk@16323 b70326c6-7e19-0410-871a-916f4a2858ee
parent cd5f74b8
Pipeline #16230620 passed with stage
in 27 minutes and 42 seconds
......@@ -704,11 +704,7 @@ void
interpolate_point4d(const POINT4D *A, const POINT4D *B, POINT4D *I, double F)
{
#if PARANOIA_LEVEL > 0
double absF=fabs(F);
if ( absF < 0 || absF > 1 )
{
lwerror("interpolate_point4d: invalid F (%g)", F);
}
if (F < 0 || F > 1) lwerror("interpolate_point4d: invalid F (%g)", F);
#endif
I->x=A->x+((B->x-A->x)*F);
I->y=A->y+((B->y-A->y)*F);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment