Рет қаралды 4,722
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.