Overview
Comment: | OFVector3D -> OFPoint3D
For now, we're only interested in transformed points. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
db7991d07b5b2b0d235c30fd43623e73 |
User & Date: | js on 2023-02-16 19:59:20 |
Other Links: | manifest | tags |
Context
2023-02-16
| ||
21:37 | OFMatrix4x4: Add translation and scaling check-in: 3e4ed4e59f user: js tags: trunk | |
19:59 | OFVector3D -> OFPoint3D check-in: db7991d07b user: js tags: trunk | |
2023-02-15
| ||
21:54 | OFMatrix4x4: Add -[transformedVector3D:] check-in: 1e550fabe3 user: js tags: trunk | |
Changes
Modified src/OFMatrix4x4.h from [6444eb96ee] to [32857d56d5].
︙ | |||
68 69 70 71 72 73 74 | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | - + - - - - - - - - + + - + | * and the receiver on the right side. * * @param matrix The matrix to multiply the receiver with */ - (void)multiplyWithMatrix: (OFMatrix4x4 *)matrix; /** |
Modified src/OFMatrix4x4.m from [97bdb88364] to [630e704e06].
︙ | |||
180 181 182 183 184 185 186 | 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]; } |
︙ |
Modified src/OFObject.h from [06e4bde8d0] to [01a23b3a57].
︙ | |||
151 152 153 154 155 156 157 | 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | - + | * @brief A time interval in seconds. */ typedef double OFTimeInterval; /** * @struct OFPoint OFObject.h ObjFW/OFObject.h * |
︙ | |||
292 293 294 295 296 297 298 | 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 | - + - + - + - + - + - + - + - - - - + + + + - - + + - + - + - + - - - + + + - + - + - + - + | if (!OFEqualSizes(rect1.size, rect2.size)) return false; return true; } /** |
︙ |
Modified tests/OFMatrix4x4Tests.m from [9aa8c2d363] to [53376eca89].
︙ | |||
20 21 22 23 24 25 26 | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | - + | static OFString *const module = @"OFMatrix4x4Tests"; @implementation TestsAppDelegate (OFMatrix4x4Tests) - (void)matrix4x4Tests { void *pool = objc_autoreleasePoolPush(); OFMatrix4x4 *matrix, *matrix2; |
︙ | |||
83 84 85 86 87 88 89 | 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | - - - + + + | [matrix2 isEqual: [OFMatrix4x4 matrixWithValues: (float [16]){ 9000, 20200, 31400, 42600, 10000, 22800, 35600, 48400, 11000, 25400, 39800, 54200, 12000, 28000, 44000, 60000 }]]) |