Changeset 245 for trunk/VUT/GtpVisibilityPreprocessor/src/Matrix4x4.cpp
- Timestamp:
- 08/22/05 21:07:44 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Matrix4x4.cpp
r209 r245 8 8 9 9 Matrix4x4::Matrix4x4(const Vector3 &a, const Vector3 &b, const Vector3 &c) 10 { 11 // first index is column [x], the second is row [y] 12 x[0][0] = a.x; 13 x[1][0] = b.x; 14 x[2][0] = c.x; 15 x[3][0] = 0.0f; 16 17 x[0][1] = a.y; 18 x[1][1] = b.y; 19 x[2][1] = c.y; 20 x[3][1] = 0.0f; 21 22 x[0][2] = a.z; 23 x[1][2] = b.z; 24 x[2][2] = c.z; 25 x[3][2] = 0.0f; 26 27 x[0][3] = 0.0f; 28 x[1][3] = 0.0f; 29 x[2][3] = 0.0f; 30 x[3][3] = 1.0f; 31 32 } 33 34 void 35 Matrix4x4::SetColumns(const Vector3 &a, const Vector3 &b, const Vector3 &c) 10 36 { 11 37 // first index is column [x], the second is row [y] … … 22 48 x[0][2] = c.x; 23 49 x[1][2] = c.y; 24 x[2][2] = c.z;25 x[3][2] = 0.0f;26 27 x[0][3] = 0.0f;28 x[1][3] = 0.0f;29 x[2][3] = 0.0f;30 x[3][3] = 1.0f;31 }32 33 void34 Matrix4x4::SetColumns(const Vector3 &a, const Vector3 &b, const Vector3 &c)35 {36 // first index is column [x], the second is row [y]37 x[0][0] = a.x;38 x[1][0] = b.x;39 x[2][0] = c.x;40 x[3][0] = 0.0f;41 42 x[0][1] = a.y;43 x[1][1] = b.y;44 x[2][1] = c.y;45 x[3][1] = 0.0f;46 47 x[0][2] = a.z;48 x[1][2] = b.z;49 50 x[2][2] = c.z; 50 51 x[3][2] = 0.0f;
Note: See TracChangeset
for help on using the changeset viewer.