Jump to content

  • Log In with Google      Sign In   
  • Create Account

What are unit Vectors?


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
4 replies to this topic

#1   Members   

122
Like
Likes
Like

Posted 07 July 2001 - 01:33 AM

What does the term "Unit Vector" mean? Also, can anyone roughyl explain to me the concept of "Cross Product" stuff? Thanks!!!!! "The feeling of mastering and understanding hard stuff in Game Programming is just like the feeling when u perform an Air-Walk in the basketball court."

#2   Members   

122
Like
Likes
Like

Posted 07 July 2001 - 01:55 AM

a unit vector is simply a vector with a length of one...
ie... sqrt( (delta x)^2 + (delta y)^2 + (delta z)^2 ) = 1

look for a good tutorial on the net about vectors... flipcode.com has an entire series devoted to this type of stuff...

Edited by - lucid on July 7, 2001 9:02:14 AM

#3 Anonymous Poster_Anonymous Poster_*   Guests   

Likes

Posted 07 July 2001 - 03:17 AM

If you have two vectors, say u and v, that are not parallel, then they can determine a plane. For example, think of u=(1,0,0) and v=(0,1,0). Linear combinations of these 2 vectors generate the XY plane. The cross product of these 2 vectors is a vector that is perpendicular to the plane. You can determine its direction using the right hand rule.

Using i,j,k notation (where i=(1,0,0),j=(0,1,0) and k=(0,0,1)) the exact formula is:

if u=ai+bj+ck and v=di+ej+fk then

u x v = determinant( i j k
a b c
d e f)

= (bf-ce)i-(af-cd)j+(ae-bd)k


#4   Members   

122
Like
Likes
Like

Posted 07 July 2001 - 02:35 PM


Thanks pal! Say, is Vectors used more in 2D or 3D games? Thanks!!!!! :-D

"The feeling of mastering and understanding hard stuff in Game Programming is just like the feeling u get when u perform an Air-Walk in the basketball court, soaring.....and everyone''s watching in awe......."

#5   Members   

1377
Like
Likes
Like

Posted 09 July 2001 - 05:05 AM

Hey,

Vectors are used *more* in 3D games, but they can surely be used in 2D games as well.

Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.