{"id":42,"date":"2013-11-08T15:46:23","date_gmt":"2013-11-08T15:46:23","guid":{"rendered":"\/\/3dbym.ru\/2013\/11\/using-and-understanding-vectors\/"},"modified":"2013-11-08T15:46:23","modified_gmt":"2013-11-08T15:46:23","slug":"using-and-understanding-vectors","status":"publish","type":"post","link":"https:\/\/3dbym.ru\/2013\/11\/using-and-understanding-vectors\/","title":{"rendered":"Using and Understanding Vectors"},"content":{"rendered":"
You know all about matrices now, so you can move on to the second concept, vectors. Vectors are one-dimensional arrays of numbers. In 3D graphics and games, most vectors have two, three, or even four compo\u00adnents, one for each axis, but a vector can have as many components as needed. They can be used to represent locations, hold the direction and<\/p>\n
<\/p>\n
\n 1<\/p>\n<\/td>\n | \n 0<\/p>\n<\/td>\n | \n 0<\/p>\n<\/td>\n | \n tx<\/p>\n<\/td>\n | \n<\/td>\n | \n sx<\/p>\n<\/td>\n | \n 0<\/p>\n<\/td>\n | \n 0<\/p>\n<\/td>\n | \n o’<\/p>\n<\/td>\n<\/tr>\n | |
\n 0<\/p>\n<\/td>\n | \n 1<\/p>\n<\/td>\n | \n 0<\/p>\n<\/td>\n | \n ty<\/p>\n<\/td>\n | \n<\/td>\n | \n 0<\/p>\n<\/td>\n | \n sy<\/p>\n<\/td>\n | \n 0<\/p>\n<\/td>\n | \n 0<\/p>\n<\/td>\n<\/tr>\n | |
\n 0<\/p>\n<\/td>\n | \n 0<\/p>\n<\/td>\n | \n 1<\/p>\n<\/td>\n | \n tz<\/p>\n<\/td>\n | \n<\/td>\n | \n 0<\/p>\n<\/td>\n | \n 0<\/p>\n<\/td>\n | \n sz<\/p>\n<\/td>\n | \n 0<\/p>\n<\/td>\n<\/tr>\n | |
\n 0<\/p>\n<\/td>\n | \n 0<\/p>\n<\/td>\n | \n 0<\/p>\n<\/td>\n | \n 1<\/p>\n<\/td>\n | \n<\/td>\n | \n 0<\/p>\n<\/td>\n | \n 0<\/p>\n<\/td>\n | \n 0<\/p>\n<\/td>\n | \n 1<\/p>\n<\/td>\n<\/tr>\n<\/table>\n
|