^ ^ J<\/a><\/p>\nt\/ = <3,4><\/p>\n
It\/I = V 32 + 42 = 5<\/p>\n
v=\u2014 = <0.6,0.8><\/p>\n
It\/I<\/p>\n
v = VO-62 + 0.82 = 1<\/p>\n
Figure 1.16 Finding the magnitude of a vector and using it to convert the original vector to a normal vector. Here, v is a vector that needs to be reduced down to a unit vector. As you can see, the current magnitude of v is 5. To calculate the unit vector u from v you divide each component of v by the magnitude of v, in this case 5. You can check it out at the end by calculating the magnitude of u; it should be 1.<\/p>\n
3D programming when you\u2019re moving players or other objects around onscreen. You use vectors to do this because vectors can store both the magnitude and direction, both of which are needed before you can calculate the new position of a player or object. This section covers vector arithmetic. You will learn how to work with vectors and how to do all of the basic vector operations needed for graphics programming.<\/p>\n","protected":false},"excerpt":{"rendered":"
You can perform all sorts of math with vectors. You can add them, subtract them, multiply them by scalars (constant numbers) to change their magnitude, and much more. This comes into play in ^ ^ J t\/ = <3,4> It\/I = V 32 + 42 = 5 v=\u2014 = <0.6,0.8> It\/I v = VO-62 + […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/posts\/45"}],"collection":[{"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":0,"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"wp:attachment":[{"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/3dbym.ru\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}