ObjFW  Diff

Differences From Artifact [c5f86994f5]:

To Artifact [b494f24572]:


199
200
201
202
203
204
205
206

207
208
209
210
211
212





213
214
215
216
217
218
219
199
200
201
202
203
204
205

206
207
208
209



210
211
212
213
214
215
216
217
218
219
220
221







-
+



-
-
-
+
+
+
+
+







	OFHashFinalize(&hash);

	return hash;
}

- (void)multiplyWithMatrix: (OFMatrix4x4 *)matrix
{
	float result[4][4] = {{ 0 }};
	float result[4][4];

	for (uint_fast8_t i = 0; i < 4; i++)
		for (uint_fast8_t j = 0; j < 4; j++)
			for (uint_fast8_t k = 0; k < 4; k++)
				result[i][j] +=
				    matrix->_values[i][k] * _values[k][j];
			result[i][j] =
			    matrix->_values[i][0] * _values[0][j] +
			    matrix->_values[i][1] * _values[1][j] +
			    matrix->_values[i][2] * _values[2][j] +
			    matrix->_values[i][3] * _values[3][j];

	memcpy(_values, result, sizeof(result));
}

- (void)translateWithVector: (OFVector3D)vector
{
	OFMatrix4x4 *translation = [[OFMatrix4x4 alloc] initWithValues: