Distance from Point to Segment Explained using JavaScript

  Рет қаралды 4,722

Radu Mariescu-Istodor

Radu Mariescu-Istodor

8 ай бұрын

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 8 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
Thank you :-)
@andyj8977
@andyj8977 5 ай бұрын
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 5 ай бұрын
:-)) 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.
@mj2068
@mj2068 3 ай бұрын
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 2 ай бұрын
Thanks :-D
@qwertyuiop-ux6jk
@qwertyuiop-ux6jk 8 ай бұрын
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 8 ай бұрын
Glad to hear you're learning :-)
@alishata8
@alishata8 6 ай бұрын
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 6 ай бұрын
Glad it helped! :-)
@javifontalva7752
@javifontalva7752 7 ай бұрын
I have so much to catch up with. I wish one day I can be half as good as you are.
@Radu
@Radu 7 ай бұрын
It's not a race :-)
@___d3p1
@___d3p1 8 ай бұрын
Radu and Brilliant together are like when Goku and Vegeta fuse to become Gogeta! The best combination ever!
@Radu
@Radu 8 ай бұрын
Yeee! Maybe it lasts more than 30 minutes, though ;-)
@devperatetechno8151
@devperatetechno8151 8 ай бұрын
thanks Radu, i had a lot of fun watching the video
@Radu
@Radu 8 ай бұрын
Good :-)
@DanielJoseAutodesk
@DanielJoseAutodesk 8 ай бұрын
It was very good. I could perfectly understand an idea.😁👍
@Radu
@Radu 8 ай бұрын
Happy to hear!
@plapbandit
@plapbandit 8 ай бұрын
Congratulations on the sponsorship!
@Radu
@Radu 8 ай бұрын
🎉
@user-bk2xn5ei1e
@user-bk2xn5ei1e 8 ай бұрын
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 8 ай бұрын
I do have this video kzbin.info/www/bejne/eXelkmWbr7mEgLM There's an app that goes with it as well, but I wouldn't exactly call it a game :-)
@AZHARakaGoat
@AZHARakaGoat 8 ай бұрын
Good 👍
@Radu
@Radu 8 ай бұрын
Thanks
@zohaibqurban7386
@zohaibqurban7386 8 ай бұрын
amazing
@Radu
@Radu 8 ай бұрын
Thanks
@georgecrisan9499
@georgecrisan9499 8 ай бұрын
Thanks
@Radu
@Radu 8 ай бұрын
Thanks :-)
@logic_force
@logic_force 8 ай бұрын
Create a content video of the ai like chat gpt show as how we will to create it with JavaScript without libraries
@Radu
@Radu 8 ай бұрын
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 8 ай бұрын
many told me to pay attention in high school algebra/geometry... if only I listened.
@Radu
@Radu 8 ай бұрын
Unfortunately, it's not obvious at that age why those things are useful...
@Ragna6765
@Ragna6765 8 ай бұрын
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 8 ай бұрын
It's awesome :-D
JavaScript map, arrow functions & ternary operator: JS Code Battle Tutorials
4:06
Why the Circle encloses the Largest Area | Explained using Hill Climbing #SoME2
7:42
He tried to save his parking spot, instant karma
00:28
Zach King
Рет қаралды 20 МЛН
How to know if a software developer is overqualified for a team?
8:17
Fredrik Christenson
Рет қаралды 12
Self-driving car - No libraries - JavaScript course [Lecture 1]
33:59
Radu Mariescu-Istodor
Рет қаралды 49 М.
Euclidean Distance: Math, Applications and Code #SoME3
14:14
Radu Mariescu-Istodor
Рет қаралды 15 М.
Gamedev Maths: point in triangle
3:54
Sebastian Lague
Рет қаралды 82 М.
Gentle Intro to Python: Making Art with Turtle Graphics
9:03
Linear Interpolation (Lerp) - Math and JavaScript Applications
37:43
Radu Mariescu-Istodor
Рет қаралды 13 М.
Introduction to Signed Distance Fields
9:00
Suboptimal Engineer
Рет қаралды 22 М.
Graph Generator | Project Showcase
14:38
Kai Blahnik
Рет қаралды 443
He tried to save his parking spot, instant karma
00:28
Zach King
Рет қаралды 20 МЛН