DarianFlorianVoda / BioShapes

Bachelor Thesis R Package
0 stars 0 forks source link

[Helper Functions] Bug in delta of shiftLine #37

Closed discoleo closed 2 years ago

discoleo commented 2 years ago

Bug in shiftLine

The formula misses a sqrt() for delta:

  sl.orto = - 1 / slope;
  sl2 = sqrt(sl.orto^2 + 1); # <- this had the BUG
  delta = d / sl2;
  # shift Start- & End-points:
DarianFlorianVoda commented 2 years ago

done!