zengqh / slimdx

Automatically exported from code.google.com/p/slimdx
0 stars 0 forks source link

Add methods for vector <=> matrix conversion #383

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As suggested by Mike.Popoloski at
http://www.gamedev.net/community/forums/topic.asp?topic_id=517554, add some
Matrix constructors taking vectors as parameters.

Also, it would be useful to be able to extract rows and columns of matrices
as vectors without the error-prone extraction and combination of individual
matrix entries. For example, for a Matrix m:

Vector4 row = new Vector4(m.M11, m.M12, m.M13, m.M14);

could be replaced by something like:

Vector4 row = m.Row0;
or
Vector4 row = m.Rows[0];

Original issue reported on code.google.com by paulspro...@googlemail.com on 16 Dec 2008 at 8:23

GoogleCodeExporter commented 9 years ago
Taking ownership.

Original comment by Mike.Popoloski on 18 Dec 2008 at 6:29

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by Mike.Popoloski on 19 Dec 2008 at 11:27