was having some trouble doing this math inside of a project, so laid it out here instead. try dragging the points. wow i literally did not know what slope was a couple months ago but now i certainly know my way around it very well credit to my good friend pythagorus