E.6 Creating a Vector Class - Learning C#

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024
  • НаукаНаука

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

  • @ikarsoontiens959
    @ikarsoontiens959 3 года назад +13

    Thank you for sharing all this knowledge Gordon Freeman.

    • @TinyDeskEngineer
      @TinyDeskEngineer 3 года назад +1

      He does look like he could kill thousands of alien parasites with a crowbar and theoretical physics.

    • @kuoyihsin
      @kuoyihsin 2 месяца назад

      I couldn't acknowledge this name until I googled it......

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

    Amazing. Lots of class concepts are much clearer in my head. Cheers mate.

  • @BijouBakson
    @BijouBakson 2 года назад

    There are things that were not covered in the tutorials above but your teaching is very thoughtful and excleent. Plenty of practice. Thank you for this exercise.

  • @exe.m1dn1ght
    @exe.m1dn1ght 2 года назад +1

    Alright, this is the cherry on top of all i've learned .. Looking forward for more videos about C# ! Please !

  • @johnlahmann
    @johnlahmann 3 года назад

    Came to learn vector basics, left a master.

  • @Makornak
    @Makornak 2 года назад

    This video was very useful. Thanks for covering this topic, had issues finding an understandable source online since I am pretty new to programming.

  • @TinyDeskEngineer
    @TinyDeskEngineer 3 года назад +2

    I have spent two days trying to figure out how to calculate a 3D vector's length in C# because Google keeps giving me articles that use mathematical symbols I don't understand or that are just mentioning pre-built methods in the System.Numerics namespace. I'm trying to make a Vector3 struct from scratch.

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

    Thank you, it helped me a lot.

  • @eddyproft8390
    @eddyproft8390 2 года назад

    Very well done and informative. Thank you.

  • @alekjatuszyk4976
    @alekjatuszyk4976 3 года назад

    Soooo much knowlage in one video. thanks a lot!

  • @sakalansnow6579
    @sakalansnow6579 3 года назад

    Great as usual 😊

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

    Take love

  • @انامسلموكفى
    @انامسلموكفى Год назад

    Why the vector as class and not as struct? And why not a readonly vectors without setting the values from outside?

  • @xspydazx
    @xspydazx Год назад

    nice , perhaps a matrix

  • @paulzupan3732
    @paulzupan3732 3 года назад

    When you write Vector copyOfV1 = new Vector(v1);
    Couldn't you achieve the same result by saying Vector copyOfV1 = v1; ?

    • @mardeleons
      @mardeleons 3 года назад

      I think it wouldnt work.
      Vector copyOfV1 = new Vector(v1);
      He is creating a NEW object, which it name is "copyOfV1" and "vector(v1)" is the object he is copying the value from.
      in your case Vector copyOfV1 = v1;
      will make "copyOfV1" a reference of "v1". so if "v1" changes, so does copyOfV1.
      I think that what i understand from Video #63
      but i am not 100% sure.

  • @chris-programmingc6226
    @chris-programmingc6226 2 года назад

    I didnt watch the entire video but i made this:
    public static double GetDistance(Vector2 Vec1, Vector2 Vec2)
    {
    double distance;
    distance = (Vec1.X - Vec2.X) * (Vec1.X - Vec2.X) + (Vec1.Y - Vec2.Y) * (Vec1.Y - Vec2.Y);
    return distance;
    }
    It will calculate the distance between a Vector2 to other

  • @simmel2844
    @simmel2844 3 года назад

    The Code link isn't working anymore 😐

  • @yavuzciftci8283
    @yavuzciftci8283 2 года назад

    Hi guys anyone to help me
    Perform a program that adds two vectors (magnitude and phase) and stores them in a
    third vector, Use the next libraries: System; System.Collections.Generic;
    System.Linq; System.Text;

  • @michaelwickerson4862
    @michaelwickerson4862 3 года назад

    defining overload for an overload, too much for me!

  • @TinyDeskEngineer
    @TinyDeskEngineer 3 года назад

    "// Method"
    Ah yes, the floor here is made of floor.