forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb0f2d68
committed
Fix line_construct_pm() for the case of "infinite" (DBL_MAX) slope.
This code was just plain wrong: what you got was not a line through thegiven point but a line almost indistinguishable from the Y-axis, althoughnot truly vertical. The only caller that tries to use this function withm == DBL_MAX is dist_ps_internal for the case where the lseg is horizontal;it would end up producing the distance from the given point to the placewhere the lseg's line crosses the Y-axis. That function is used by otheroperators too, so there are several operators that could compute wrongdistances from a line segment to something else. Per bug #5745 fromjindiax.Back-patch to all supported branches.1 parent8f742d1 commitb0f2d68
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1072 | 1072 | | |
1073 | 1073 | | |
1074 | 1074 | | |
1075 | | - | |
1076 | | - | |
1077 | | - | |
1078 | 1075 | | |
1079 | | - | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1080 | 1082 | | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
1081 | 1087 | | |
| 1088 | + | |
1082 | 1089 | | |
1083 | 1090 | | |
1084 | 1091 | | |
| |||
0 commit comments
Comments
(0)