Distance between vectors

Discussion in 'Development' started by iCirgio, Jul 11, 2019.

  1. iCirgio

    iCirgio Slime

    Messages:
    87
    GitHub:
    lolnova
    I have x1, z1, x2 and z2 saved for 2 locations, how can i check the distance between the 2 of those locations?
     
  2. HimbeersaftLP

    HimbeersaftLP Chicken

    Messages:
    1,593
    GitHub:
    HimbeersaftLP
    Use $pos1->distance($pos2).

    Edit: Fix typo
    (yes I actually managed to get a typo into one word of text)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.