Differences From Artifact [2f91cc67c5]:
- File src/OFMatrix4x4.m — part of check-in [e31a31bdcb] at 2023-02-18 12:01:58 on branch trunk — OFMatrix4x4: Transform vectors in 4D space (user: js, size: 4483) [annotate] [blame] [check-ins using]
To Artifact [81834eec17]:
- File
src/OFMatrix4x4.m
— part of check-in
[b924571763]
at
2023-02-18 23:53:12
on branch trunk
— OFMatrix4x4: Don't create a singleton
A singleton for the identity matrix makes no sense since OFMatrix4x4 is
mutable. (user: js, size: 4218) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
21 22 23 24 25 26 27 | static const float identityValues[16] = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 }; | < < < < < < < < < < < < < < < | | | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | static const float identityValues[16] = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 }; @implementation OFMatrix4x4 + (OFMatrix4x4 *)identityMatrix { return [[[OFMatrix4x4 alloc] initWithValues: identityValues] autorelease]; } + (instancetype)matrixWithValues: (const float [16])values { return [[[self alloc] initWithValues: values] autorelease]; } |
︙ | ︙ |