Register    Login    Forum    Search    FAQ

Board index » Everything




Post new topic Reply to topic  [ 497 posts ]  Go to page Previous  1 ... 45, 46, 47, 48, 49, 50  Next
Author Message
 Post Posted: July 12th, 2017, 6:54 pm 
 

Joined: February 28th, 2013, 3:23 am
Posts: 2663
Location: Oklahoma, United States
Yeah, I had forgotten all of my geometry and trigonometry from high school by the time I got around to using it. It's been tough trying to re-learn everything.

_________________
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com


Top 
 Profile  
Reply with quote  
 Post Posted: July 13th, 2017, 9:48 am 
User avatar

Joined: January 19th, 2017, 10:28 pm
Posts: 371
Location: Idiot from northern Europe
^^ yeah tbh second part of the video got a bit confusing to me :D

Just found out I got accepted to my #1 back up school too :D
So if I hadn't gotten accepted to game programming I'd be doing 3 years of software engineering.


Top 
 Profile  
Reply with quote  
 Post Posted: July 13th, 2017, 2:41 pm 
 

Joined: February 28th, 2013, 3:23 am
Posts: 2663
Location: Oklahoma, United States
congrats again

_________________
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com


Top 
 Profile  
Reply with quote  
 Post Posted: July 14th, 2017, 2:49 pm 
User avatar

Joined: February 14th, 2017, 7:32 pm
Posts: 166
^


Top 
 Profile  
Reply with quote  
 Post Posted: July 15th, 2017, 4:40 pm 
 

Joined: July 10th, 2017, 7:42 pm
Posts: 8
Well done on the school offers bro, you must have really impressed!


Top 
 Profile  
Reply with quote  
 Post Posted: July 16th, 2017, 4:10 pm 
Site Admin
User avatar

Joined: December 31st, 2011, 4:53 pm
Posts: 3300
Location: Japan
The second part of the video is the important part :D

You should spend extra time focussing on it. I give the derivation 3 different ways to help people wrap their head around it, and the reason is because rotation is a VERY important math concept for a game programming to understand intimately imo.

_________________
Chili


Top 
 Profile  
Reply with quote  
 Post Posted: July 16th, 2017, 7:44 pm 
User avatar

Joined: January 19th, 2017, 10:28 pm
Posts: 371
Location: Idiot from northern Europe
Thanks guys :) It obviously doesn't really matter since I declined it but still felt good knowing I got accepted to both my top 2 choices!

@Chili, yep i intend to rewatch that :) These math vids gets a bit to much when watching an hour straight. Will first watch part 6 of intermediate though!

Just got back home from bjj camp, so haven't been able to study for a couple days. Will watch part 6 soon though.


Top 
 Profile  
Reply with quote  
 Post Posted: July 16th, 2017, 8:30 pm 
User avatar

Joined: January 19th, 2017, 10:28 pm
Posts: 371
Location: Idiot from northern Europe
10 minutes into part 6, now fighting the urges to pur this tutorial on ice and watch interviews with a vampire


Top 
 Profile  
Reply with quote  
 Post Posted: July 17th, 2017, 6:12 am 
Site Admin
User avatar

Joined: December 31st, 2011, 4:53 pm
Posts: 3300
Location: Japan
Say what you want about Anne Rice's stuff, at least it's not Twilight :D

_________________
Chili


Top 
 Profile  
Reply with quote  
 Post Posted: July 17th, 2017, 8:38 pm 
User avatar

Joined: January 19th, 2017, 10:28 pm
Posts: 371
Location: Idiot from northern Europe
Feeling like a big ole dummy dumbdumb today.

So I've watched part 6 twice. Both times, for whatever reason, I space out completely half way through.
Read up on copy constructors and googled a bunch of stuff. Still feel very confuzzled.

Anyways, after googling, reading and a bunch of failed button mashing I somehow managed to pass all of the tests. But will need to go back to this one in the future.

Tomorrow I'm gonna rewatch the second half of the trig lesson and if there's time, watch the one about matrices. Then I'm putting programming on ice for a little bit while reading up on linear algebra.

hw
Spoiler:
Code:
#pragma once

class Node
{
   friend class Stack;
   Node* next;
   int data;
   Node() = default;
   Node(Node* n, int d)
      :
      next(n),
      data(d)
   {}
};

class Stack
{
public:
   Stack()
      :
      head(0),
      size(0)
   {};
   ~Stack();
   Stack(const Stack& source)
      :
      size(source.size)
   {
      Node* cur = nullptr;
      Node* next = nullptr;

      if (source.head)
      {
         head = new Node;
         head->data = source.head->data;
         cur = head;
         next = source.head->next;
      }
      else
      {
         head = nullptr;
      }

      while (next)
      {
         cur->next = new Node;
         cur = cur->next;
         cur->data = next->data;
         next = next->next;
      }
      cur->next = nullptr;
   };
   Stack& operator= (const Stack& source)
   {
      if (this != &source)
      {
         this->~Stack();
         size = source.size;
         Node* cur = nullptr;
         Node* next = nullptr;

         if (source.head)
         {
            head = new Node;
            head->data = source.head->data;
            cur = head;
            next = source.head->next;
         }
         else
         {
            head = nullptr;
         }

         while (next)
         {
            cur->next = new Node;
            cur = cur->next;
            cur->data = next->data;
            next = next->next;
         }
         cur->next = nullptr;
      }
      return *this;
   };
   void Push( int val );
   int Pop();
   int Size() const;
   bool Empty() const;

private:
   int size;
   Node* head;
};

Code:
#include "Stack.h"

Stack::~Stack()
{
   while (!Empty())
   {
      Node* newNode = head;
      head = head->next;
      delete newNode;
   }
}

void Stack::Push(int val)
{
   size++;
   head = new Node(head, val);
}

int Stack::Pop()
{
   if (Empty())
   {
      return -1;
   }
   else
   {
      size--;
      Node* newNode = head;
      int d = newNode->data;
      head = head->next;
      delete newNode;
      return d;
   }
}

int Stack::Size() const
{
   return size;
}

bool Stack::Empty() const
{
   return !head;
}


chili wrote:
Say what you want about Anne Rice's stuff, at least it's not Twilight :D


I'm waaaay too into vampire movies/shows, but even I can't stand the twilight ones.
I actually did enjoy the books though
Spoiler:
plz don't tell anyone


Top 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 497 posts ]  Go to page Previous  1 ... 45, 46, 47, 48, 49, 50  Next

Board index » Everything


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: