- Home /

# Average (?) vector from two lines

I have two lines, which could be represented by two vectors (V1 and V2). I am trying to figure out how to find the point (normalized) along a line going outward from the average of the angle of the two vectors. (represented here by the dot on the green line). And also inward (the purple dot on the purple line). Hope someone can help!

What if v1 and v2 will look to the opposite directions from each other

**Answer** by Bunny83
·
Jun 13, 2019 at 10:56 PM

Just normalize V1 and V2, add them together and normalize the result again. This will give you the purple vector. Inverting this vector gives you the green one. Keep in mind if the angle between V1 and V2 flips over 180° the purple and green vectors would switch places- Also there's a possible issue when V1 and V2 are exactly 180° apart since they would cancel each other and result in a (0,0,0) vector. This case can be handled, though it depends on what you want to happen in this case.

### Your answer

### Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.

### Follow this Question

### Related Questions

Sorting an array of vectors in javascript 1 Answer

Vector math problem 2 Answers

Drag/Move an object perpendicular to starting point 1 Answer

Plane geometry 0 Answers

Spread two vertices 2 Answers