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

let P = the vector p - S(-p)

let Q dot P = 0 which means Q is perpendicular to P

to choose between R = Q or -Q you want R dot (-p) > 0 because -p points from the line containing p and S(-p) toward the origin so you can just dot product again




Huh I’m not too far familiar with vectors. How do we know that R dot (-p) > 0 always




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

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

Search: