Coding Math: Episode 5 - Arctangent

preview_player
Показать описание
Arctangent is another trig function that has at least one extremely useful application - making one object rotate to point at another one.

Рекомендации по теме
Комментарии
Автор

Ok.. let me confess.. This guy is brilliant as he understands the struggle a programmer faces when he is not in touch with basic maths principles.. These videos are short, simple, to the point and extremely helpful. You rock.

ashutoshrautela
Автор

Your videos are great, I cant remember when I last learned so much in such a short amount of time. Thank you!

fedejumphat
Автор

Dude, I've known how to use atan2 to rotate stuff, but I had not been aware of the logic behind it until I watched your video. Thank you so much! I hope you produce more tutorials in future.

meraklmuskulpesent
Автор

So cool. You are making math fun again. :)

SamVsCode
Автор

Thank you Coding Math. New favorite channel.

justsomedude
Автор

Thank you so much for showing the atan2 function. Solved all of my problems that I've been struggling with!

williamschneidereith
Автор

This is awesome stuff. I'm learning to code animations. Thank you so much bro!

frassmicce
Автор

I was going to try teaching myself math using code. Now you've done it for me!! Thanks a tonne for these awesome videos.

CaptainWumbo
Автор

This tutorial was simply amazing. Clear and straight to the point.

P
Автор

Wow that is cool. You get around the limitations of tan returning a radian that could be infinity by using arctan to return a degree which doesnt have any limitation

neuro
Автор

It was very useful. Again it worked straight out of the tin!

radx
Автор

this is absolutely amazing. Thank you!

kaiwenli
Автор

dude ur making me fall in love for math...



MATH

kaiotellure
Автор

OOOOHHH so it's the -1 thing, thanks for clearin that up fam :V

DanYami
Автор

How would you go about tracking the mouse position without the
"mousemove" event? I want the arrow to point at the mouse at all times,
not just when it moves.

Awesome video series, I'm learning a lot.

Keeykey
Автор

Thank you for this. I gather this works for a 2D plane, but if i wanted to handle this in 3D space do i use a different type of math? Say... vectors?

DoraKage
Автор

Really enjoying this series, it explains the maths so well with the theory drawings, then code and execution. However, I am having problems when running, for example the code at 7:44 draws the arrow but no movement e.g. following the mouse.

Your code for this lesson works and I have read the video and my code several times now but no mistakes or should be working as I get the arrow.  I am using Chrome and Atom as my editor.

Just cannot see why not working, any ideas please, don't want to move to next part of this lesson as it may not work if this isn't.

rayerdinc
Автор

Awesome. Is it possible to achieve the same with say math.sin2() and math.cos2() if such functions exist?

camsolo
Автор

This upside down right triangle is really salting my vibe, I'm struggling to process it

pwrmoses
Автор

What happens if you don't move the mouse in the last bit?

tundrummax