55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
[OFMatrix4x4 matrixWithValues: (const float [4][4]){
{ 1, 0, 0, 0 },
{ 0, 1, 0, 0 },
{ 0, 0, 1, 0 },
{ 0, 0, 0, 1 }
}]])
TEST(@"-[copy]", (matrix2 = [matrix copy]) && [matrix2 isEqual: matrix])
TEST(@"-[multiplyWithMatrix:] #1",
R([matrix2 multiplyWithMatrix: [OFMatrix4x4 identityMatrix]]) &&
[matrix2 isEqual: matrix])
matrix2 = [OFMatrix4x4 matrixWithValues: (const float [4][4]){
{ 100, 200, 300, 400 },
|
>
|
|
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
[OFMatrix4x4 matrixWithValues: (const float [4][4]){
{ 1, 0, 0, 0 },
{ 0, 1, 0, 0 },
{ 0, 0, 1, 0 },
{ 0, 0, 0, 1 }
}]])
TEST(@"-[copy]", (matrix2 = [[matrix copy] autorelease]) &&
[matrix2 isEqual: matrix])
TEST(@"-[multiplyWithMatrix:] #1",
R([matrix2 multiplyWithMatrix: [OFMatrix4x4 identityMatrix]]) &&
[matrix2 isEqual: matrix])
matrix2 = [OFMatrix4x4 matrixWithValues: (const float [4][4]){
{ 100, 200, 300, 400 },
|