Hacker News new | past | comments | ask | show | jobs | submit login

I wasn't expecting scaling the points by a some multiplier number for line through points example https://github.com/stevenpetryk/mafs/blob/main/src/display/L...

Doing some trigonometry to get the angles of the points and drawing lines from the svg edges could be a better approach




Yeah, you found some jank.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: