Video není dostupné.
Omlouváme se.

3.4 Polar Coordinates - The Nature of Code

Sdílet
Vložit
  • čas přidán 5. 08. 2024
  • It’s finally time to dive into the trigonometric functions-sine, cosine, tangent-and take a close look at thinking in polar coordinates with p5.js! Code: thecodingtrain.com/tracks/the...
    p5.js Web Editor Sketches:
    🕹️ Basic Polar Coordinates: editor.p5js.org/codingtrain/s...
    🕹️ Spiral: editor.p5js.org/codingtrain/s...
    🕹️ Random Trail: editor.p5js.org/codingtrain/s...
    🕹️ Circular Shape: editor.p5js.org/codingtrain/s...
    🎥 Previous video: • 3.3: Angles and Vector...
    🎥 Next video: • 3.5 Simple Harmonic Mo...
    🎥 All videos: • The Nature of Code
    References:
    🔗 sin(): p5js.org/reference/#/p5/sin
    🔗 cos(): p5js.org/reference/#/p5/cos
    🔗 tan(): p5js.org/reference/#/p5/tan
    Videos:
    🎥 3.1 Angles and Rotation: • 3.1 Angles and Rotatio...
    🎥 Asteroids with p5.js: • Coding Challenge #46.1...
    🎥 Polar Perlin Noise Loops: • Coding Challenge #136....
    Timestamps:
    0:00 I'm so excited!
    0:11 Sine, cosine, and tangent
    2:24 Sin, cos, and tan again differently
    5:49 Polar coordinates
    9:03 Demonstrate polar coordinates
    11:26 Spiral and Randomness
    12:17 Draw your own circular shape
    15:19 What kinds of shapes can you make?
    16:02 See you in the next video!
    Editing by Mathieu Blanchette
    Animations by Jason Heglund
    Music from Epidemic Sound
    🚂 Website: thecodingtrain.com/
    👾 Share Your Creation! thecodingtrain.com/guides/pas...
    🚩 Suggest Topics: github.com/CodingTrain/Sugges...
    💡 GitHub: github.com/CodingTrain
    💬 Discord: thecodingtrain.com/discord
    ✪ Nebula: go.nebula.tv/codingtrain
    💖 Membership: czcams.com/users/thecodingtrainjoin
    🛒 Store: standard.tv/codingtrain
    🖋️ Twitter: / thecodingtrain
    📸 Instagram: / the.coding.train
    🎥 Coding Challenges: • Coding Challenges
    🎥 Intro to Programming: • Start learning here!
    🔗 p5.js: p5js.org
    🔗 p5.js Web Editor: editor.p5js.org/
    🔗 Processing: processing.org
    📄 Code of Conduct: github.com/CodingTrain/Code-o...
    This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecod...
    #forbeginners #javascript #p5js

Komentáře • 93

  • @Brunoenribeiro
    @Brunoenribeiro Před 2 lety +8

    You didn't make the concepts easier to understand; you made them obvious. I'm always impressed by your classes, it's wonderful.

  • @tomkirbygreen
    @tomkirbygreen Před 3 lety +24

    Thank you so much Dan for this video. Lovely presentation of the material. Really appreciate your tireless, creative and original approach to this stuff.

  • @juanignaciosanchez2202
    @juanignaciosanchez2202 Před 3 lety +11

    I should add your name in the credits of my mini game!

  • @Roknok
    @Roknok Před 3 lety +47

    You have become younger than you were 4 years before

    • @DannySullivanMusic
      @DannySullivanMusic Před 3 lety +5

      You can tell he loves what he does!

    • @pinklady7184
      @pinklady7184 Před 3 lety +1

      He must have eaten something that gives him beans of energy. I wonder what he has been fed on.

  • @ejmakela7525
    @ejmakela7525 Před 3 lety +2

    The sounds you make when you draw those dotted lines, even when sped up, is very soothing. - - - - - - - - - - 😌

  • @IanJohnstonblog
    @IanJohnstonblog Před 3 lety +13

    You are such a great teacher. I’ve learned so much from watching your videos and tutorials / lectures.
    Thanks for all your hard work, and your mission to make these concepts digestible for a large audience!!

  • @Jova
    @Jova Před 3 lety +7

    i've learned more math in a couple of your videos than i could've ever hoped to learn.

  • @kickbaktube
    @kickbaktube Před 2 lety +1

    This video gave me a light bulb moment where it all suddenly makes sense . Awesome video thank you.

  • @60pluscrazy
    @60pluscrazy Před 2 lety

    Your enthusiasm is infectious 🙏👌

  • @Derek_Pixel
    @Derek_Pixel Před 3 lety +6

    oh man you were better at explaining sin, cos and tan then any of my high school math teachers ever did lol

  • @wuilliam321
    @wuilliam321 Před rokem

    I had great teachers at school, but this way of refreshing those concepts are greeeeeeaaaaaaat * 10000; really appreciate it

  • @Caspernil
    @Caspernil Před 3 lety

    what a wonderful tutor. dude, you have such a natural knack for making these (somewhat) obtuse topics accessible. keep it up!

  • @kae4881
    @kae4881 Před 3 lety +11

    Loving this series dan! excellent work you're doing!

  • @harry.mishinev
    @harry.mishinev Před 3 lety +1

    The best teacher!

  • @NathanBreunig
    @NathanBreunig Před 3 lety

    Been watching you on and off for years. Very much appreciate your content. You are always so upbeat and informative in an easy to understand manner. Have learned a ton! Thanks

  • @jaymishra7560
    @jaymishra7560 Před 2 lety

    I am just in love with your content, everytime when some of your video pops on my timeline, I get super excited 🎉🙏

  • @marvelouswalrus949
    @marvelouswalrus949 Před 3 lety +3

    If only my school/college teachers had been like you... I will say it again: your students at the university, what lucky folks they are. I even wonder if they are aware of that.

  • @yagopereiradasilva7270

    I’m speechless, Thank you

  • @juicysquid
    @juicysquid Před 2 lety

    Dan, you are such a great teacher. Thank you so much for these videos.

  • @hamadaparis3556
    @hamadaparis3556 Před 2 lety

    I can't stop watching your videos thank you so much Dan, Cheers.

  • @DevsLikeUs
    @DevsLikeUs Před 3 lety +2

    Love this portion of your series!

  • @THE_ONLY_GOD
    @THE_ONLY_GOD Před rokem +1

    Thanks for the nice explanations!

  • @montanasebastiano3564
    @montanasebastiano3564 Před 3 lety

    That was a fantastic explanation! It really helped solidify those formulas and how to use them. Thank you!

  • @maugre316
    @maugre316 Před 3 lety

    This is great! Really timely for me as I'm rewriting some game physics I coded a year ago and doing a much better job after this reminder of what it all does, so thank you!

  • @Eternam
    @Eternam Před 3 lety

    I LOVE this series, thank you very much.

  • @meepable
    @meepable Před 2 lety +1

    Wow I’m impressed with your efforts to teach those materials. I wanted to understand how Mathy stuff work and am logically but not mathy programmer. Thank you for putting them up!

  • @noiseeater
    @noiseeater Před 2 lety

    This channel is a brilliant! Thank you for your work!

  • @user-rb6sp7bv5t
    @user-rb6sp7bv5t Před 3 lety +2

    Thank you, very useful.

  • @heyitsandrew2209
    @heyitsandrew2209 Před 3 lety

    This was fascinating. Thanks a ton!

  • @drkmgoswami3042
    @drkmgoswami3042 Před 3 lety

    I never understood topic but you teach me thanks Amazing video

  • @justshahad2149
    @justshahad2149 Před 3 lety

    I love your enthusiasm man 💖

  • @realcygnus
    @realcygnus Před 3 lety

    Superb content ! As always.

  • @nadaashraf2901
    @nadaashraf2901 Před 3 lety

    I was about to take a break between my study sessions ,but this video is more attractive 💜
    Thank you 🌺

  • @learning_with_irving4266

    The DaVinci Code, Trigonometry, Programming Code, Mathematical Axioms in Chaos Theory, & Mandelbrot plot all make sense now lol

  • @madghostek3026
    @madghostek3026 Před 3 lety +1

    These videos are really approachable, even by younger audience, I can see top programmers in the future asked about the secret behind their success responding "Coding train"

  • @THE_ONLY_GOD
    @THE_ONLY_GOD Před rokem +2

    Definitely a natural teacher type, by the way.

  • @dorothyandalice
    @dorothyandalice Před 3 lety

    this is so close to teaching quantum computing...can't wait for those videos

  • @PumpiPie
    @PumpiPie Před 3 lety +8

    Was looking into this. Than randomly while taking a break i did see that coding train uploaded a video with the exsact think i was trying to learn :D xD
    Going to watch this video until i understend it and remembers it. Probly going to have to watch it 69 times :/
    Ps.
    Keep up the good work :D

    • @turpialito
      @turpialito Před 3 lety +1

      I learned to code thanks to Mr. Shiffman, and his wonderfully-explained Learning Processing series. I recall watching and re-watching some, if not most of the videos, several times while I grasped the concept. It's not unlike practicing a challenging song on your favorite instrument. We stumble over and over again, until one day, as if by who-knows-what force, you break through and "get it". It all clicks at that moment, and Mr. Shiffman is a true master at making it all click.

  • @jheffersonsouza3696
    @jheffersonsouza3696 Před 3 lety +1

    Muito bom, parabéns pelo vídeo

  • @paulshekhovtsov7031
    @paulshekhovtsov7031 Před 2 lety

    Bravo !

  • @JulesB418
    @JulesB418 Před 3 lety

    In French we have an other way to remember, we say "cah soh toa" because it sounds like "casse toi" which mean "get out" so it make the student laugh and we remember it

  • @bayroncastillo7653
    @bayroncastillo7653 Před 3 lety

    We love you ! man ... you make me to code ! ahhaa

  • @ellpell6550
    @ellpell6550 Před rokem

    Nice thanks

  • @issam76
    @issam76 Před rokem

    Tbh i didn't understand most of the video, until i knew the goal of it

  • @hoaihung3189
    @hoaihung3189 Před 2 lety

    Cool!

  • @sreekashuppari1882
    @sreekashuppari1882 Před 3 lety

    Charged Circle ⚡

  • @benburnell3068
    @benburnell3068 Před 3 lety +1

    I know that you might not be able to but I was trying to figure out how to make a socket server but I have windows and I can't figure it out because there aren't any videos about windows, node and p5

  • @avi12
    @avi12 Před 3 lety +4

    Dan is officially comparable to the legendary Eddie Woo

  • @beforeikillyou7430
    @beforeikillyou7430 Před 3 lety +7

    Even though i know polar coordinates, i just clicked the video to get some enthusiasm and energy .

  • @expertsystem6379
    @expertsystem6379 Před 3 lety

    If I draw 2000 rectangles of random values transformation in p5.js using a for loop, it freezed for something 8 sec is that something wrong on my system?

  •  Před 3 lety

    Thanks for this video. I would like to know how to use this fundamentals to draw diagonals of any polygon.

  • @marcelofaviodesigner
    @marcelofaviodesigner Před rokem

    What if i want to find the intersection points of two circles in polar and cartesian coordinates?

  • @marvelouswalrus949
    @marvelouswalrus949 Před 3 lety +1

    Does the lovely creature on the left side of the sin/cos/tan chart that pops up during your explanations represent the infamous this dot? >_

  • @ukranaut
    @ukranaut Před 3 lety +1

    That pen sound is driving me crazy.

  • @saurabhtalele1537
    @saurabhtalele1537 Před 2 lety

    i haven't seen a magician like you..

  • @marcelofaviodesigner
    @marcelofaviodesigner Před rokem

    Hi ... i´m working on the pde format... the final increase doesn´t seem to work with fractions.. only with 1 or bigger values but the point rotates too fast.. what is the problem?
    ---
    int angle=0;
    void setup(){
    size(900,900);
    }
    void draw(){
    background(40);
    noFill();
    strokeWeight(5);
    stroke(100,100,100);
    var r=200;
    translate(450,450);
    circle(0,0,r*2);
    strokeWeight(15);
    stroke(250,238,33);
    var x=r* cos(angle) ;
    var y=r* sin(angle);
    point(x,y);

    angle += 0.2;
    }

  • @hasnakhalifi9855
    @hasnakhalifi9855 Před 3 lety

    Ily

  • @123TeeMee
    @123TeeMee Před 3 lety +1

    This is weird, I went back on processing for the first time in a month or so to do some polar coordinate thing just two days ago.

  • @ult1873
    @ult1873 Před 3 lety

    i actually still remember sohcahtoa dang

  • @codycodes7527
    @codycodes7527 Před 3 lety +1

    12th!

  • @johnroberts2012
    @johnroberts2012 Před 3 lety

    How do you make such great videos teach me?

  • @nthSonata
    @nthSonata Před 3 lety +2

    Something I find useful which you didn't mention, is that the tangent of an angle will give you the cartesian slope of the line at that angle; this can also be useful going in reverse to use the arctangent (aka inverse tangent) to find the angle to align something with a given slope

  • @magneticking4339
    @magneticking4339 Před 3 lety

    SOHCAHTOA
    Some Old Horses Can Always Hear Their Owners Approach
    Sin=Opp/Hyp
    Cos=Adj/Hyp
    Tan=Opp/Adj

  • @emreeren1999
    @emreeren1999 Před 3 lety

  • @kundansingh2641
    @kundansingh2641 Před 3 lety +3

    Second too from india😂

  • @AdarshKumar-qi8jf
    @AdarshKumar-qi8jf Před 3 lety +1

    I am in 12th and
    My mind:- I know everything😎😎😎😎😎😎😎

  • @77dreimaldie0
    @77dreimaldie0 Před 3 lety

    Who knows the Gaga Hühnerhof mnemonic?

  • @flamendless
    @flamendless Před 3 lety

    First?
    Indeed i am haha no other comments shown even after refresh

  • @Roknok
    @Roknok Před 3 lety +1

    14th

  • @kananiravi8567
    @kananiravi8567 Před 3 lety +2

    second

  • @toastyPredicament
    @toastyPredicament Před 2 lety

    Brb

  • @Profi_Point
    @Profi_Point Před 3 lety +2

    Whosds

  • @k_wl
    @k_wl Před 3 lety

    4th comment

  • @toastyPredicament
    @toastyPredicament Před 2 lety

    Hi

  • @toastyPredicament
    @toastyPredicament Před 2 lety

    Please get me out of here