aruslan: (Default)
[personal profile] aruslan

http://blogs.msdn.com/xna/archive/2006/08/25/724607.aspx

Math

Our Math API provides the types often used for game programming such as Vector2, Vector3, Vector4, Matrix, Plane, and Ray.  We also include bounding volume types including BoundingBox, BoundingSphere and BoundingFrustum. Our bounding volume types include methods for doing intersection and containment tests.  One thing to note is that our math libraries are right-handed by default. What I mean by that is on our Matrix, for example, we provide a CreateLookAt method, which provides a right-handed view matrix instead of offering a CreateLookAtLH and a CreateLookAtRHThe reason we’ve decided on going with this is to ease integration in both content and middleware components.  If everyone can agree on the coordinate system, then it makes it much easier to use content or APIs from outside of the XNA Framework.  I say “by default” because there is nothing that requires a right-handed system. So if you absolutely need to be left-handed (or something else) you can do so, you’ll just need to do some of the calculations yourself.

Коллеги из Microsoft как-то неправильно (читай - не посоветовавшись с дядей Димой) назвали вектора, матрицы, плоскости, лучи и ббоксы.  Впрочем, я надеюсь, что скоро кое-кто из наших проделает с ними необходимую разъяснительную работу.
Но несомненно другое.

Как и следовало ожидать, Единственно Правильной Координатной СистемойTM советского геймдева будет Правая Координатная Система (как в OpenGL), а вовсе не какая-то левая "Левая" (как у Шодана).

Ура, товарищи!

Точное направление осей, впрочем, пока неизвестно. 
Оставайтесь с нами.

Date: Aug. 26th, 2006 09:14 (UTC)
From: [identity profile] cyberzx.livejournal.com
кстати, есть более важный вопрос.
вектора суть матрицы столбцы или матрицы строки?
то есть row-major vs col-major!

+1

Date: Aug. 26th, 2006 09:20 (UTC)
From: [identity profile] aruslan.livejournal.com
Ха!
Ты хитрый!

Ты - первый, кто об этом спросил публично!
У тебя еще есть шанс повлиять на мажорность совецкого геймдева!
Дерзай!

Re: +1

Date: Aug. 26th, 2006 12:02 (UTC)
From: [identity profile] http://users.livejournal.com/_winnie/
afaik, матрицы как float* везде одинаковые, и в первой любви, и на работе.

Re: +1

Date: Aug. 26th, 2006 15:28 (UTC)
From: [identity profile] aruslan.livejournal.com
Матрицы - да, а вот порядок умножений - нет ;)

Re: +1

Date: Aug. 26th, 2006 16:33 (UTC)
From: [identity profile] http://users.livejournal.com/_winnie/
Подумаешь, справа/налево. Я всегда путаю право и лево. Это просто запись.

Profile

aruslan: (Default)
aruslan

January 2014

S M T W T F S
   1234
56789 1011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 17th, 2026 08:47
Powered by Dreamwidth Studios