MCPcopy Create free account
hub / github.com/cinder/Cinder / TestMatrix33

Function TestMatrix33

test/mathTest/src/TestMatrix33.h:5–1715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "cinder/Rand.h"
4
5template <typename T> void TestMatrix33( std::ostream& os )
6{
7 typedef Matrix33<T> MatT;
8
9 // Matrix33();
10 {
11 bool result = false;
12
13 MatT c0( 1, 0, 0,
14 0, 1, 0,
15 0, 0, 1 );
16 MatT m0;
17
18 result = ( c0 == m0 );
19
20 os << (result ? "passed" : "FAILED") << " : " << "Matrix33();" << "\n";
21 }
22
23
24 // Matrix33( T s );
25 {
26 bool result = false;
27
28 MatT c0( 3, 3, 3,
29 3, 3, 3,
30 3, 3, 3 );
31
32 MatT m0( 3 );
33
34 result = ( c0 == m0 );
35
36 os << (result ? "passed" : "FAILED") << " : " << "Matrix33( T s );" << "\n";
37 }
38
39
40 // Matrix33( const T *dt );
41 {
42 bool result = false;
43
44 MatT c0( 1, 2, 3,
45 4, 5, 6,
46 7, 8, 9 );
47
48 T data[9] =
49 {
50 (T)1, (T)2, (T)3,
51 (T)4, (T)5, (T)6,
52 (T)7, (T)8, (T)9
53 };
54
55 MatT m0( data );
56
57 result = ( c0 == m0 );
58
59 os << (result ? "passed" : "FAILED") << " : " << "Matrix33( const T *dt );" << "\n";
60 }
61
62

Callers

nothing calls this directly

Calls 7

toRadiansFunction · 0.85
alignZAxisWithTargetFunction · 0.85
randFloatFunction · 0.85
atMethod · 0.80
invertMethod · 0.80
rotateMethod · 0.80
zeroFunction · 0.50

Tested by

no test coverage detected