Lines Matching refs:q0
47 quatd q0; in TEST_F() local
48 EXPECT_EQ(q0.x, 0); in TEST_F()
49 EXPECT_EQ(q0.y, 0); in TEST_F()
50 EXPECT_EQ(q0.z, 0); in TEST_F()
51 EXPECT_EQ(q0.w, 0); in TEST_F()
104 quatd q0(1, 2, 3, 4); in TEST_F() local
105 q0.x = 10; in TEST_F()
106 q0.y = 20; in TEST_F()
107 q0.z = 30; in TEST_F()
108 q0.w = 40; in TEST_F()
109 EXPECT_EQ(q0.x, 10); in TEST_F()
110 EXPECT_EQ(q0.y, 20); in TEST_F()
111 EXPECT_EQ(q0.z, 30); in TEST_F()
112 EXPECT_EQ(q0.w, 40); in TEST_F()
114 q0[0] = 100; in TEST_F()
115 q0[1] = 200; in TEST_F()
116 q0[2] = 300; in TEST_F()
117 q0[3] = 400; in TEST_F()
118 EXPECT_EQ(q0.x, 100); in TEST_F()
119 EXPECT_EQ(q0.y, 200); in TEST_F()
120 EXPECT_EQ(q0.z, 300); in TEST_F()
121 EXPECT_EQ(q0.w, 400); in TEST_F()
123 q0.xyz = double3(1, 2, 3); in TEST_F()
124 EXPECT_EQ(q0.x, 1); in TEST_F()
125 EXPECT_EQ(q0.y, 2); in TEST_F()
126 EXPECT_EQ(q0.z, 3); in TEST_F()
127 EXPECT_EQ(q0.w, 400); in TEST_F()
131 quatd q0(1, 2, 3, 4); in TEST_F() local
133 q0 += 1; in TEST_F()
134 EXPECT_EQ(q0.x, 2); in TEST_F()
135 EXPECT_EQ(q0.y, 3); in TEST_F()
136 EXPECT_EQ(q0.z, 4); in TEST_F()
137 EXPECT_EQ(q0.w, 2); in TEST_F()
139 q0 -= 1; in TEST_F()
140 EXPECT_EQ(q0.x, 2); in TEST_F()
141 EXPECT_EQ(q0.y, 3); in TEST_F()
142 EXPECT_EQ(q0.z, 4); in TEST_F()
143 EXPECT_EQ(q0.w, 1); in TEST_F()
145 q0 *= 2; in TEST_F()
146 EXPECT_EQ(q0.x, 4); in TEST_F()
147 EXPECT_EQ(q0.y, 6); in TEST_F()
148 EXPECT_EQ(q0.z, 8); in TEST_F()
149 EXPECT_EQ(q0.w, 2); in TEST_F()
151 q0 /= 2; in TEST_F()
152 EXPECT_EQ(q0.x, 2); in TEST_F()
153 EXPECT_EQ(q0.y, 3); in TEST_F()
154 EXPECT_EQ(q0.z, 4); in TEST_F()
155 EXPECT_EQ(q0.w, 1); in TEST_F()
159 q0 += q1; in TEST_F()
160 EXPECT_EQ(q0.x, 22); in TEST_F()
161 EXPECT_EQ(q0.y, 33); in TEST_F()
162 EXPECT_EQ(q0.z, 44); in TEST_F()
163 EXPECT_EQ(q0.w, 11); in TEST_F()
165 q0 -= q1; in TEST_F()
166 EXPECT_EQ(q0.x, 2); in TEST_F()
167 EXPECT_EQ(q0.y, 3); in TEST_F()
168 EXPECT_EQ(q0.z, 4); in TEST_F()
169 EXPECT_EQ(q0.w, 1); in TEST_F()
181 quatd q0(1, 2, 3, 4); in TEST_F() local
184 EXPECT_TRUE(q0 == q0); in TEST_F()
185 EXPECT_TRUE(q0 != q1); in TEST_F()
186 EXPECT_FALSE(q0 != q0); in TEST_F()
187 EXPECT_FALSE(q0 == q1); in TEST_F()
191 quatd q0(1, 2, 3, 4); in TEST_F() local
194 quatd q2(q0 + q1); in TEST_F()
200 q0 = q1 * 2; in TEST_F()
201 EXPECT_EQ(q0.x, 40); in TEST_F()
202 EXPECT_EQ(q0.y, 60); in TEST_F()
203 EXPECT_EQ(q0.z, 80); in TEST_F()
204 EXPECT_EQ(q0.w, 20); in TEST_F()
206 q0 = 2 * q1; in TEST_F()
207 EXPECT_EQ(q0.x, 40); in TEST_F()
208 EXPECT_EQ(q0.y, 60); in TEST_F()
209 EXPECT_EQ(q0.z, 80); in TEST_F()
210 EXPECT_EQ(q0.w, 20); in TEST_F()
213 q0 = q1 * qf; in TEST_F()
214 EXPECT_EQ(q0.x, 40); in TEST_F()
215 EXPECT_EQ(q0.y, 60); in TEST_F()
216 EXPECT_EQ(q0.z, 80); in TEST_F()
217 EXPECT_EQ(q0.w, 20); in TEST_F()