Solved A single vector between two others?

Discussion in 'Plugin Development' started by camman00, Jul 19, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    camman00

    Hello, this is the last component I need for my plugin. I have to vectors that are equal length. I have one more vector that may or may not be between them. How can I check if it is? My problem is that the vector that may or may not be in the middle has a different length than the ones which are equal so how would you reduce it? Heres a sketch to help explain :)
    http://sketchtoy.com/68222676

    Thanks for your time much appreciation :) Also the 2 equal vectors in length are also parallel with respect to each other. If you need more clarification feel free to reply!
     
    Last edited: Jul 19, 2017
  2. Offline

    Machine Maker

    @camman00 I'm not quite sure I understand. If you want to get all three vectors to be the same length, you can use vector#normalize() which changes all the lengths to 1 and adjusts accordingly.
     
    camman00 likes this.
  3. Offline

    camman00

    Thanks for reminding me of that lol I totally blanked. Solved!
     
Thread Status:
Not open for further replies.

Share This Page