Differences From Artifact [97bdb88364]:
- File src/OFMatrix4x4.m — part of check-in [1e550fabe3] at 2023-02-15 21:54:40 on branch trunk — OFMatrix4x4: Add -[transformedVector3D:] (user: js, size: 5614) [annotate] [blame] [check-ins using]
To Artifact [630e704e06]:
- File
src/OFMatrix4x4.m
— part of check-in
[db7991d07b]
at
2023-02-16 19:59:20
on branch trunk
— OFVector3D -> OFPoint3D
For now, we're only interested in transformed points. (user: js, size: 5642) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
180 181 182 183 184 185 186 | matrix->_values[14] * copy[15]; _values[15] = matrix->_values[3] * copy[12] + matrix->_values[7] * copy[13] + matrix->_values[11] * copy[14] + matrix->_values[15] * copy[15]; } | | | | | | | | | | 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | matrix->_values[14] * copy[15]; _values[15] = matrix->_values[3] * copy[12] + matrix->_values[7] * copy[13] + matrix->_values[11] * copy[14] + matrix->_values[15] * copy[15]; } - (OFPoint3D)transformedPoint3D: (OFPoint3D)point { return OFMakePoint3D( _values[0] * point.x + _values[4] * point.y + _values[8] * point.z + _values[12], _values[1] * point.x + _values[5] * point.y + _values[9] * point.z + _values[13], _values[2] * point.x + _values[6] * point.y + _values[10] * point.z + _values[14]); } - (OFString *)description { return [OFString stringWithFormat: @"<OFMatrix4x4: {\n" @"\t%g %g %g %g\n" |
︙ | ︙ |