Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find a normal vector of a 2D line? [closed]

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?

like image 1000
Ian McLeod Avatar asked May 07 '13 11:05

Ian McLeod


People also ask

How do you find the normal vector of a line in 2D?

A 2d line with normal vector \bfn is given by \bfn\cdot \bfx = b for some b. To find \bfn, we should write the given line in this form. Let \bfn = (n_1, n_2) and \bfx = (x, y). The line \bfn \cdot \bfx = b is the same as n_1 x + n_2 y = b.

How do you find the normal vector of a line?

A unit vector is a vector of length 1. Any nonzero vector can be divided by its length to form a unit vector. Thus for a plane (or a line), a normal vector can be divided by its length to get a unit normal vector. Example: For the equation, x + 2y + 2z = 9, the vector A = (1, 2, 2) is a normal vector.

How do you find a 2D vector?

Formulas for the magnitude of vectors in two and three dimensions in terms of their coordinates are derived in this page. For a two-dimensional vector a=(a1,a2), the formula for its magnitude is ∥a∥=√a21+a22.


1 Answers

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).

like image 134
Janus Troelsen Avatar answered Sep 21 '22 07:09

Janus Troelsen