Changeset 5966 for vtkvis/trunk/Math.h
- Timestamp:
- Jan 25, 2016, 7:33:59 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vtkvis/trunk/Math.h
r3744 r5966 80 80 f *= 2; 81 81 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); 93 93 } 94 94 … … 121 121 f *= 2; 122 122 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); 134 134 } 135 135
Note: See TracChangeset
for help on using the changeset viewer.