Commit 2003fb4
BUG: BresenhamLine - use double precision floats for ending index computation
Use explicit static_cast<double>() on both operands of the division
computing euclideanLineLen so the division evaluates in double
precision, not float (LType = Vector<float>).
Assisted-by: Greptile — identified float-precision division in BuildLine
(cherry picked from commit b7248b1)1 parent ac5652b commit 2003fb4
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
0 commit comments