Skip to content

Commit f567653

Browse files
committed
Update DeviationMetrics.c
1 parent eb6fdfb commit f567653

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DeviationMetrics.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ static double perpendicularDistance(DVector2D start, DVector2D end, DVector2D mi
3838
{
3939
double dArea;
4040

41-
dArea = 0.5 * (start.dX * (mid.dY - end.dY) +
41+
dArea = start.dX * (mid.dY - end.dY) +
4242
mid.dX * (end.dY - start.dY) +
43-
end.dX * (start.dY - mid.dY));
43+
end.dX * (start.dY - mid.dY);
4444

4545
return dArea * dArea / dSquareSegmentLength;
4646
}

0 commit comments

Comments
 (0)