@@ -80,22 +80,91 @@ void vtkMatrix4x4::MultiplyPoint(const double Elements[16],
80
80
}
81
81
82
82
// ----------------------------------------------------------------------------
83
+ #ifndef VTK_LEGACY_REMOVE
84
+ double *vtkMatrix4x4::operator [](const unsigned int i)
85
+ {
86
+ VTK_LEGACY_BODY (vtkMatrix4x4::operator [], " VTK 7.1" );
87
+ return &(this ->Element [i][0 ]);
88
+ }
89
+ #endif
90
+
91
+ // ----------------------------------------------------------------------------
92
+ #ifndef VTK_LEGACY_REMOVE
93
+ const double *vtkMatrix4x4::operator [](unsigned int i) const
94
+ {
95
+ VTK_LEGACY_BODY (vtkMatrix4x4::operator [], " VTK 7.1" );
96
+ return &(this ->Element [i][0 ]);
97
+ }
98
+ #endif
99
+
100
+ // ----------------------------------------------------------------------------
101
+ #ifndef VTK_LEGACY_REMOVE
102
+ void vtkMatrix4x4::Adjoint (vtkMatrix4x4 &in, vtkMatrix4x4 &out)
103
+ {
104
+ VTK_LEGACY_BODY (vtkMatrix4x4::Adjoint, " VTK 7.1" );
105
+ this ->Adjoint (&in, &out);
106
+ }
107
+ #endif
108
+
109
+ // ----------------------------------------------------------------------------
110
+ #ifndef VTK_LEGACY_REMOVE
111
+ double vtkMatrix4x4::Determinant (vtkMatrix4x4 &in)
112
+ {
113
+ VTK_LEGACY_BODY (vtkMatrix4x4::Determinant, " VTK 7.1" );
114
+ return this ->Determinant (&in);
115
+ }
116
+ #endif
117
+
118
+ // ----------------------------------------------------------------------------
119
+ #ifndef VTK_LEGACY_REMOVE
120
+ double vtkMatrix4x4::Determinant (vtkMatrix4x4 *in)
121
+ {
122
+ VTK_LEGACY_BODY (vtkMatrix4x4::Determinant, " VTK 7.1" );
123
+ return vtkMatrix4x4::Determinant (*in->Element );
124
+ }
125
+ #endif
126
+
127
+ // ----------------------------------------------------------------------------
128
+ #ifndef VTK_LEGACY_REMOVE
129
+ void vtkMatrix4x4::Invert (vtkMatrix4x4 &in, vtkMatrix4x4 &out)
130
+ {
131
+ VTK_LEGACY_BODY (vtkMatrix4x4::Invert, " VTK 7.1" );
132
+ this ->Invert (&in, &out);
133
+ }
134
+ #endif
135
+
136
+ // ----------------------------------------------------------------------------
137
+ #ifndef VTK_LEGACY_REMOVE
138
+ void vtkMatrix4x4::Transpose (vtkMatrix4x4 &in, vtkMatrix4x4 &out)
139
+ {
140
+ VTK_LEGACY_BODY (vtkMatrix4x4::Transpose, " VTK 7.1" );
141
+ this ->Transpose (&in, &out);
142
+ }
143
+ #endif
144
+
145
+ // ----------------------------------------------------------------------------
146
+ #ifndef VTK_LEGACY_REMOVE
83
147
void vtkMatrix4x4::PointMultiply (const double Elements[16 ],
84
148
const float in[4 ], float result[4 ])
85
149
{
150
+ VTK_LEGACY_BODY (vtkMatrix4x4::PointMultiply, " VTK 7.1" );
86
151
double newElements[16 ];
87
152
vtkMatrix4x4::Transpose (Elements, newElements);
88
153
vtkMatrix4x4::MultiplyPoint (newElements, in, result);
89
154
}
155
+ #endif
90
156
91
157
// ----------------------------------------------------------------------------
158
+ #ifndef VTK_LEGACY_REMOVE
92
159
void vtkMatrix4x4::PointMultiply (const double Elements[16 ],
93
160
const double in[4 ], double result[4 ])
94
161
{
162
+ VTK_LEGACY_BODY (vtkMatrix4x4::PointMultiply, " VTK 7.1" );
95
163
double newElements[16 ];
96
164
vtkMatrix4x4::Transpose (Elements, newElements);
97
165
vtkMatrix4x4::MultiplyPoint (newElements, in, result);
98
166
}
167
+ #endif
99
168
100
169
// ----------------------------------------------------------------------------
101
170
// Matrix Inversion (adapted from Richard Carling in "Graphics Gems,"
0 commit comments