Sign in to follow this  
  • entries
  • comments
  • views

Time to oil the cogs

Sign in to follow this  


I am at the end of chapter five of the Math primer book for 3D gaming. Time for the Linear Algebra exercises. A few of them are easy, but normalizing vectors takes a little getting used to. It is a simple formula, I am just a little rusty right now.

I loved Math in high school, but that was years ago...
Sign in to follow this  


Recommended Comments

lol, I hated math in high school. I never appreciated how powerful and useful it is until I started learning game dev. I felt there was no purpose in high school as far as math goes. Game dev gives me a purpose.

Share this comment

Link to comment
Normalizing vectors isn't too bad; you're just making them unit length (1).

So, if the normalized vector is N, and the non-normalized vector is n, you want:
N = normalize(n), |N| = 1, |n| = length,
Since you want to preserve the original direction of the vector, you'll need to scale each element of n by the same amount.
So, |n|/x = 1, N = n/x
Trivially, we have x = length = |n|

When I was learning linear algebra, I found it a lot easier to remember things if you really think about why you are doing something, instead of just memorizing the formulas.

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now