Ignore:
Timestamp:
Mar 22, 2016 11:07:59 PM (8 years ago)
Author:
ldelgass
Message:

merge r5966:5968 from trunk

Location:
vtkvis/branches/1.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vtkvis/branches/1.8

  • vtkvis/branches/1.8/Math.h

    r3744 r6183  
    8080    f *= 2;
    8181
    82     mat[0][0] = xx*f + s;
    83     mat[1][0] = (xy + wz)*f;
    84     mat[2][0] = (xz - wy)*f;
    85 
    86     mat[0][1] = (xy - wz)*f;
    87     mat[1][1] = yy*f + s;
    88     mat[2][1] = (yz + wx)*f;
    89 
    90     mat[0][2] = (xz + wy)*f;
    91     mat[1][2] = (yz - wx)*f;
    92     mat[2][2] = zz*f + s;
     82    mat.SetElement(0, 0, xx*f + s);
     83    mat.SetElement(1, 0, (xy + wz)*f);
     84    mat.SetElement(2, 0, (xz - wy)*f);
     85
     86    mat.SetElement(0, 1, (xy - wz)*f);
     87    mat.SetElement(1, 1, yy*f + s);
     88    mat.SetElement(2, 1, (yz + wx)*f);
     89
     90    mat.SetElement(0, 2, (xz + wy)*f);
     91    mat.SetElement(1, 2, (yz - wx)*f);
     92    mat.SetElement(2, 2, zz*f + s);
    9393}
    9494
     
    121121    f *= 2;
    122122
    123     mat[0][0] = xx*f + s;
    124     mat[0][1] = (xy + wz)*f;
    125     mat[0][2] = (xz - wy)*f;
    126 
    127     mat[1][0] = (xy - wz)*f;
    128     mat[1][1] = yy*f + s;
    129     mat[1][2] = (yz + wx)*f;
    130 
    131     mat[2][0] = (xz + wy)*f;
    132     mat[2][1] = (yz - wx)*f;
    133     mat[2][2] = zz*f + s;
     123    mat.SetElement(0, 0, xx*f + s);
     124    mat.SetElement(0, 1, (xy + wz)*f);
     125    mat.SetElement(0, 2, (xz - wy)*f);
     126
     127    mat.SetElement(1, 0, (xy - wz)*f);
     128    mat.SetElement(1, 1, yy*f + s);
     129    mat.SetElement(1, 2, (yz + wx)*f);
     130
     131    mat.SetElement(2, 0, (xz + wy)*f);
     132    mat.SetElement(2, 1, (yz - wx)*f);
     133    mat.SetElement(2, 2, zz*f + s);
    134134}
    135135
Note: See TracChangeset for help on using the changeset viewer.