| 187 | } |
| 188 | |
| 189 | LAScriterionKeepProfile(F64 p1_x, F64 p1_y, F64 p2_x, F64 p2_y, F64 width) |
| 190 | { |
| 191 | x1 = p1_x; |
| 192 | y1 = p1_y; |
| 193 | |
| 194 | x2 = p2_x; |
| 195 | y2 = p2_y; |
| 196 | |
| 197 | w = width; |
| 198 | wm = w / 2.0; |
| 199 | |
| 200 | xm = (p1_x + p2_x) / 2.0; |
| 201 | ym = (p1_y + p2_y) / 2.0; |
| 202 | |
| 203 | vx = (p2_y - p1_y); |
| 204 | vy = -(p2_x - p1_x); |
| 205 | |
| 206 | divider = sqrt((vx * vx) + (vy * vy)); |
| 207 | dividerm = divider / 2.0; |
| 208 | }; |
| 209 | private: |
| 210 | F64 x1, y1, x2, y2, xm, ym, vx, vy, divider, dividerm, w, wm; |
| 211 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected