Ignore:
Timestamp:
08/22/05 21:07:44 (19 years ago)
Author:
bittner
Message:

Merged sources with ViewCellBsp?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Matrix4x4.cpp

    r209 r245  
    88 
    99Matrix4x4::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 
     34void 
     35Matrix4x4::SetColumns(const Vector3 &a, const Vector3 &b, const Vector3 &c) 
    1036{ 
    1137  // first index is column [x], the second is row [y] 
     
    2248  x[0][2] = c.x; 
    2349  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 void 
    34 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; 
    4950  x[2][2] = c.z; 
    5051  x[3][2] = 0.0f; 
Note: See TracChangeset for help on using the changeset viewer.