10

I have a line with point a, (6, 12) and point b (45, 18).

To describe this line using vectors, the equation is L = [6, 12] +t [39, 6]

How would I go about finding the normal to this line?

Ian McLeod
  • 123
  • 1
  • 1
  • 3
  • see also [Given 2 points how do I draw a line at a right angle to the line formed by the two points?](http://stackoverflow.com/q/7469959/309483) for an elaborate explanation – Janus Troelsen May 07 '13 at 11:34
  • possible duplicate of [How do I calculate the normal vector of a line segment?](http://stackoverflow.com/questions/1243614/how-do-i-calculate-the-normal-vector-of-a-line-segment) – duffymo May 07 '13 at 13:01
  • 4
    I'm voting to close this question as off-topic because it is about mathematics, not programming. – Pang Oct 07 '15 at 01:32

1 Answers1

25

From the Math StackExchange How do I calculate the normal vector of a line segment?:

if we define dx=x2-x1 and dy=y2-y1, then the normals are (-dy, dx) and (dy, -dx).

Community
  • 1
  • 1
Janus Troelsen
  • 20,267
  • 14
  • 135
  • 196