issues
search
ShahjalalShohag
/
code-library
Templates, algorithms and data structures implemented and collected for programming contests.
MIT License
2.85k
stars
751
forks
source link
update point reflection along line, point along line and polar sort w…
#15
Closed
st3inum
closed
1 year ago
st3inum
commented
1 year ago
added polar sort w.r.t point o
point_along_line function should not return a when a == b, because it dont mean any line.
in reflection_from_point_to_line, we can just simply return 2
p - c, which is much more efficient than point_along_line(c, p, 2.0
dist(c, p))
ShahjalalShohag
commented
1 year ago
cool