Distance from Point to Segment Explained using JavaScript

Поделиться
HTML-код
  • Опубликовано: 14 сен 2023
  • To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/Radu. The first 200 of you will get 20% off Brilliant’s annual premium subscription.
    FOLLOW ALONG HERE: codepen.io/gniziemazity/pen/x...
    In this JavaScript tutorial, we'll dive into the world of geometric algorithms as I show you how to calculate the distance between a point and a segment. Whether you're a beginner or an experienced coder, I'll break down the math behind this essential calculation and guide you through the process of implementing it in JavaScript step by step.
    To figure out this formula we use concepts like 2D vectors and linear interpolation. If you have trouble with those, please watch these videos first:
    2D Vectors: • Learn 2D Vectors with ...
    Interpolation: • Linear Interpolation (...
    Self-driving Car Course:
    • Self-driving Car :: Ph...
    If you're interested in improving your math and coding skills, don't forget to like, subscribe, and share this video with others who might find it helpful. Let's get started on this fascinating journey of math and JavaScript coding!
    This video was sponsored by Brilliant.

Комментарии • 35

  • @Radu
    @Radu  10 месяцев назад +5

    To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/Radu. The first 200 of you will get 20% off Brilliant’s annual premium subscription.

  • @pesterenan
    @pesterenan 10 месяцев назад +7

    I'm so happy that you got a sponsorship! This is definetly the channel to sponsor from Brilliant! Your explanations and ideas are really well done, so it's really easy to follow along!

    • @Radu
      @Radu  10 месяцев назад +2

      Thank you :-)

  • @andyj8977
    @andyj8977 7 месяцев назад +3

    Your channel deserves exponentially more subscribers and viewers. Must be that the community just hasn’t yet stumbled across this absolute gold mine of content. Thank you so much for these videos Radu. Hoping that the well deserved riches come your way soon!

    • @Radu
      @Radu  7 месяцев назад +1

      :-)) thanks
      But it's OK. Bigger channels have their downsides as well. Like, I don't think I can keep up replying to all comments for much longer.

  • @qwertyuiop-ux6jk
    @qwertyuiop-ux6jk 10 месяцев назад +3

    Addicted to this channel, because of coding practices, wide range of challenging projects from scratch. Thank You Sir!!!!!! I have seen many channels with low quality content having high subscribers and revenue, but this channels deserves millions of subscribers for his work.

    • @Radu
      @Radu  10 месяцев назад

      Glad to hear you're learning :-)

  • @mj2068
    @mj2068 5 месяцев назад +1

    wow radu my dude this is so so cool!!! you're truly awesome. let me just sing the intro tune to express my gratitude. "gonna code and debug and have fun, coding with radu, gonna prototype and design, coding with radu."

    • @Radu
      @Radu  4 месяца назад

      Thanks :-D

  • @alishata8
    @alishata8 8 месяцев назад +2

    Impressive Explanation, I really started grasping math and using it to solve many problems in current and past projects, I really thank you Radu

    • @Radu
      @Radu  8 месяцев назад

      Glad it helped! :-)

  • @javifontalva7752
    @javifontalva7752 9 месяцев назад +2

    I have so much to catch up with. I wish one day I can be half as good as you are.

    • @Radu
      @Radu  9 месяцев назад

      It's not a race :-)

  • @DanielJoseAutodesk
    @DanielJoseAutodesk 10 месяцев назад +2

    It was very good. I could perfectly understand an idea.😁👍

    • @Radu
      @Radu  10 месяцев назад

      Happy to hear!

  • @___d3p1
    @___d3p1 10 месяцев назад +1

    Radu and Brilliant together are like when Goku and Vegeta fuse to become Gogeta! The best combination ever!

    • @Radu
      @Radu  10 месяцев назад +1

      Yeee! Maybe it lasts more than 30 minutes, though ;-)

  • @devperatetechno8151
    @devperatetechno8151 10 месяцев назад +1

    thanks Radu, i had a lot of fun watching the video

    • @Radu
      @Radu  10 месяцев назад +1

      Good :-)

  • @user-bk2xn5ei1e
    @user-bk2xn5ei1e 10 месяцев назад +1

    thanks, thats what i was looking for, would u plz make an educational mathmatic game help kidds to get circle theory for example

    • @Radu
      @Radu  10 месяцев назад

      I do have this video ruclips.net/video/CFBa2ezTQJQ/видео.html
      There's an app that goes with it as well, but I wouldn't exactly call it a game :-)

  • @plapbandit
    @plapbandit 10 месяцев назад +1

    Congratulations on the sponsorship!

    • @Radu
      @Radu  10 месяцев назад

      🎉

  • @AZHARakaGoat
    @AZHARakaGoat 10 месяцев назад +2

    Good 👍

    • @Radu
      @Radu  10 месяцев назад

      Thanks

  • @georgecrisan9499
    @georgecrisan9499 10 месяцев назад

    Thanks

    • @Radu
      @Radu  10 месяцев назад

      Thanks :-)

  • @zohaibqurban7386
    @zohaibqurban7386 10 месяцев назад +1

    amazing

    • @Radu
      @Radu  10 месяцев назад

      Thanks

  • @Landinion
    @Landinion 10 месяцев назад +1

    Create a content video of the ai like chat gpt show as how we will to create it with JavaScript without libraries

    • @Radu
      @Radu  10 месяцев назад

      To get something that really works well, I would need to find a lot of good quality data to train the system. It's not enough to write the code... I rarely make videos like that (in my ML course I collected data from viewers).

  • @pizdaxyu
    @pizdaxyu 10 месяцев назад +1

    many told me to pay attention in high school algebra/geometry... if only I listened.

    • @Radu
      @Radu  10 месяцев назад

      Unfortunately, it's not obvious at that age why those things are useful...

  • @Ragna6765
    @Ragna6765 10 месяцев назад +1

    Couldn´t get the starting codepen to work and ended up trying to do it on my own before watching the video, it works, but it ended up being an unoptimized mess :(
    /anon-ymous-the-sasster/pen/KKbvoZe

    • @Radu
      @Radu  10 месяцев назад

      It's awesome :-D