I wish I had more time to explain it but, someone on here might help guide you. In the meantime search up "unit normal vector to a two-dimensional...