Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle z_at_xy_zero being very large.
When z_at_xy_zero starts off very large, subtracting z_delta from it might still leave it larger than kInfiniteCoordinate, so we can't assume that it is smaller. Just forcing it to be smaller should be good enough given how much of an edge case this is. (We won't get sensible results anyway, since the inaccuracy of floating point will have made them wildly inaccurate already.) Fixed: 1224066 Change-Id: I77b6ad4e1569664094cb2ba7c0e17135fe0cae48 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3002328 Reviewed-by: Robert Flack <flackr@chromium.org> Commit-Queue: David Baron <dbaron@chromium.org> Cr-Commit-Position: refs/heads/master@{#898176}
- Loading branch information