90 for (
i = 0;
i < 4; ++
i)
92 for (
j = 0;
j < 4; ++
j)
102#define expect_vec2(expected, vector, ulps) expect_vec2_(__LINE__, expected, vector, ulps)
107 "Got unexpected vector {%.8e, %.8e}, expected {%.8e, %.8e}.\n",
111#define expect_vec3(expected, vector, ulps) expect_vec3_(__LINE__, expected, vector, ulps)
116 "Got unexpected vector {%.8e, %.8e, %.8e}, expected {%.8e, %.8e, %.8e}.\n",
120#define expect_vec4(expected, vector, ulps) expect_vec4_(__LINE__, expected, vector, ulps)
125 "Got unexpected vector {%.8e, %.8e, %.8e, %.8e}, expected {%.8e, %.8e, %.8e, %.8e}.\n",
129#define expect_color(expected, color, ulps) expect_color_(__LINE__, expected, color, ulps)
134 "Got unexpected color {%.8e, %.8e, %.8e, %.8e}, expected {%.8e, %.8e, %.8e, %.8e}.\n",
138#define expect_plane(expected, plane, ulps) expect_plane_(__LINE__, expected, plane, ulps)
143 "Got unexpected plane {%.8e, %.8e, %.8e, %.8e}, expected {%.8e, %.8e, %.8e, %.8e}.\n",
147#define expect_quaternion(expected, quaternion, ulps) expect_quaternion_(__LINE__, expected, quaternion, ulps)
153 "Got unexpected quaternion {%.8e, %.8e, %.8e, %.8e}, expected {%.8e, %.8e, %.8e, %.8e}.\n",
154 quaternion->
x, quaternion->
y, quaternion->
z, quaternion->
w,
158#define expect_matrix(expected, matrix, ulps) expect_matrix_(__LINE__, expected, matrix, ulps)
163 "Got unexpected matrix {%.8e, %.8e, %.8e, %.8e, %.8e, %.8e, %.8e, %.8e, "
164 "%.8e, %.8e, %.8e, %.8e, %.8e, %.8e, %.8e, %.8e}, "
165 "expected {%.8e, %.8e, %.8e, %.8e, %.8e, %.8e, %.8e, %.8e, "
166 "%.8e, %.8e, %.8e, %.8e, %.8e, %.8e, %.8e, %.8e}.\n",
167 U(*matrix).m[0][0],
U(*matrix).m[0][1],
U(*matrix).m[0][2],
U(*matrix).m[0][3],
168 U(*matrix).m[1][0],
U(*matrix).m[1][1],
U(*matrix).m[1][2],
U(*matrix).m[1][3],
169 U(*matrix).m[2][0],
U(*matrix).m[2][1],
U(*matrix).m[2][2],
U(*matrix).m[2][3],
170 U(*matrix).m[3][0],
U(*matrix).m[3][1],
U(*matrix).m[3][2],
U(*matrix).m[3][3],
171 U(*expected).m[0][0],
U(*expected).m[0][1],
U(*expected).m[0][2],
U(*expected).m[0][3],
172 U(*expected).m[1][0],
U(*expected).m[1][1],
U(*expected).m[1][2],
U(*expected).m[1][3],
173 U(*expected).m[2][0],
U(*expected).m[2][1],
U(*expected).m[2][2],
U(*expected).m[2][3],
174 U(*expected).m[3][0],
U(*expected).m[3][1],
U(*expected).m[3][2],
U(*expected).m[3][3]);
177#define expect_vec4_array(count, expected, vector, ulps) expect_vec4_array_(__LINE__, count, expected, vector, ulps)
188 "Got unexpected vector {%.8e, %.8e, %.8e, %.8e} at index %u, expected {%.8e, %.8e, %.8e, %.8e}.\n",
197 float m00,
float m01,
float m02,
float m03,
198 float m10,
float m11,
float m12,
float m13,
199 float m20,
float m21,
float m22,
float m23,
200 float m30,
float m31,
float m32,
float m33)
202 U(
mat)->m[0][0] = m00;
U(
mat)->m[0][1] = m01;
U(
mat)->m[0][2] = m02;
U(
mat)->m[0][3] = m03;
215 color1.
r = 0.6f; color1.
g = 0.55f; color1.
b = 0.23f; color1.
a = 0.82f;
216 color2.
r = 0.3f; color2.
g = 0.5f; color2.
b = 0.76f; color2.
a = 0.11f;
222 D3DXColorAdd(&got,&color1,&color2);
225 funcpointer = D3DXColorAdd(&got,
NULL,&color2);
226 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
227 funcpointer = D3DXColorAdd(
NULL,
NULL,&color2);
228 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
230 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
247 funcpointer = D3DXColorLerp(&got,
NULL,&color1,
scale);
248 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
250 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
252 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
256 D3DXColorModulate(&got,&color1,&color2);
259 funcpointer = D3DXColorModulate(&got,
NULL,&color2);
260 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
261 funcpointer = D3DXColorModulate(
NULL,
NULL,&color2);
262 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
264 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
268 D3DXColorNegative(&got,&
color);
271 color1.
r = 0.2f; color1.
g = 1.75f; color1.
b = 0.41f; color1.
a = 0.93f;
273 D3DXColorNegative(&got,&color1);
276 color1.
r = 0.2f; color1.
g = -0.75f; color1.
b = 0.41f; color1.
a = 0.93f;
278 D3DXColorNegative(&got,&color1);
281 funcpointer = D3DXColorNegative(&got,
NULL);
282 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
283 funcpointer = D3DXColorNegative(
NULL,
NULL);
284 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
291 funcpointer = D3DXColorScale(&got,
NULL,
scale);
292 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
294 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
298 D3DXColorSubtract(&got,&
color,&color2);
301 funcpointer = D3DXColorSubtract(&got,
NULL,&color2);
302 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
303 funcpointer = D3DXColorSubtract(
NULL,
NULL,&color2);
304 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
306 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
316 ok(
equal,
"Got unexpected Fresnel term %.8e.\n", fresnel);
323 float angle, determinant;
330 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
331 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
332 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
333 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
334 U(
mat).m[0][0] = 10.0f;
U(
mat).m[1][1] = 20.0f;
U(
mat).m[2][2] = 30.0f;
335 U(
mat).m[3][3] = -40.0f;
337 U(mat2).m[0][0] = 1.0f;
U(mat2).m[1][0] = 2.0f;
U(mat2).m[2][0] = 3.0f;
338 U(mat2).m[3][0] = 4.0f;
U(mat2).m[0][1] = 5.0f;
U(mat2).m[1][1] = 6.0f;
339 U(mat2).m[2][1] = 7.0f;
U(mat2).m[3][1] = 8.0f;
U(mat2).m[0][2] = -8.0f;
340 U(mat2).m[1][2] = -7.0f;
U(mat2).m[2][2] = -6.0f;
U(mat2).m[3][2] = -5.0f;
341 U(mat2).m[0][3] = -4.0f;
U(mat2).m[1][3] = -3.0f;
U(mat2).m[2][3] = -2.0f;
342 U(mat2).m[3][3] = -1.0f;
346 q.x = 1.0f;
q.y = -4.0f;
q.z =7.0f;
q.w = -11.0f;
347 r.x = 0.87f;
r.y = 0.65f;
r.z =0.43f;
r.w= 0.21f;
349 at.
x = -2.0f; at.
y = 13.0f; at.
z = -9.0f;
350 axis.
x = 1.0f; axis.
y = -3.0f; axis.
z = 7.0f;
351 eye.
x = 8.0f; eye.
y = -5.0f; eye.
z = 5.75f;
360 -459.239990f, -576.719971f, -263.440002f, 0.0f,
361 519.760010f, -352.440002f, -277.679993f, 0.0f,
362 363.119995f, -121.040001f, -117.479996f, 0.0f,
363 -1239.0f, 667.0f, 567.0f, 1.0f);
368 U(expectedmat).m[3][0] = 1.0f;
U(expectedmat).m[3][1] = -3.0f;
U(expectedmat).m[3][2] = 7.0f;
U(expectedmat).m[3][3] = 1.0f;
372 U(expectedmat).m[3][0] = -1240.0f;
U(expectedmat).m[3][1] = 670.0f;
U(expectedmat).m[3][2] = 560.0f;
U(expectedmat).m[3][3] = 1.0f;
376 U(expectedmat).m[3][0] = 0.0f;
U(expectedmat).m[3][1] = 0.0f;
U(expectedmat).m[3][2] = 0.0f;
U(expectedmat).m[3][3] = 1.0f;
381 3.56f, 0.0f, 0.0f, 0.0f,
382 0.0f, 3.56f, 0.0f, 0.0f,
383 0.0f, 0.0f, 3.56f, 0.0f,
384 1.0f, -3.0f, 7.0f, 1.0f);
391 U(expectedmat).m[3][0] = 0.0f;
U(expectedmat).m[3][1] = 0.0f;
U(expectedmat).m[3][2] = 0.0f;
U(expectedmat).m[3][3] = 1.0f;
401 ok(
equal,
"Got unexpected determinant %.8e.\n", determinant);
405 16067.0f/73944.0f, -10165.0f/147888.0f, -2729.0f/147888.0f, -1631.0f/49296.0f,
406 -565.0f/36972.0f, 2723.0f/73944.0f, -1073.0f/73944.0f, 289.0f/24648.0f,
407 -389.0f/2054.0f, 337.0f/4108.0f, 181.0f/4108.0f, 317.0f/4108.0f,
408 163.0f/5688.0f, -101.0f/11376.0f, -73.0f/11376.0f, -127.0f/3792.0f);
412 ok(
equal,
"Got unexpected determinant %.8e.\n", determinant);
415 ok(!
ret,
"Unexpected return value %p.\n",
ret);
418 "Unexpected determinant %.8e.\n", determinant);
422 memset(&mat3, 0,
sizeof(mat3));
423 got = D3DXMatrixIsIdentity(&mat3);
425 D3DXMatrixIdentity(&mat3);
427 got = D3DXMatrixIsIdentity(&mat3);
429 U(mat3).m[0][0] = 0.000009f;
431 got = D3DXMatrixIsIdentity(&mat3);
435 got = D3DXMatrixIsIdentity(
NULL);
440 -0.82246518f, -0.40948939f, -0.39480308f, 0.0f,
441 -0.55585691f, 0.43128574f, 0.71064550f, 0.0f,
442 -0.12072885f, 0.80393475f, -0.58233452f, 0.0f,
443 4.4946337f, 0.80971903f, 10.060076f, 1.0f);
449 0.82246518f, -0.40948939f, 0.39480308f, 0.0f,
450 0.55585691f, 0.43128574f, -0.71064550f, 0.0f,
451 0.12072885f, 0.80393475f, 0.58233452f, 0.0f,
452 -4.4946337f, 0.80971903f, -10.060076f, 1.0f);
458 73.0f, 193.0f, -197.0f, -77.0f,
459 231.0f, 551.0f, -489.0f, -169.0f,
460 239.0f, 523.0f, -400.0f, -116.0f,
461 -164.0f, -320.0f, 187.0f, 31.0f);
467 73.0f, 231.0f, 239.0f, -164.0f,
468 193.0f, 551.0f, 523.0f, -320.0f,
469 -197.0f, -489.0f, -400.0f, 187.0f,
470 -77.0f, -169.0f, -116.0f, 31.0f);
476 0.8f, 0.0f, 0.0f, 0.0f,
477 0.0f, 0.27027027f, 0.0f, 0.0f,
478 0.0f, 0.0f, -0.15151515f, 0.0f,
479 0.0f, 0.0f, -0.48484848f, 1.0f);
485 3.6363636f, 0.0f, 0.0f, 0.0f,
486 0.0f, 0.18018018f, 0.0f, 0.0f,
487 0.0f, 0.0f, -0.045662100f, 0.0f,
488 -1.7272727f, -0.56756757f, 0.42465753f, 1.0f);
494 3.6363636f, 0.0f, 0.0f, 0.0f,
495 0.0f, 0.18018018f, 0.0f, 0.0f,
496 0.0f, 0.0f, 0.045662100f, 0.0f,
497 -1.7272727f, -0.56756757f, 0.42465753f, 1.0f);
503 0.8f, 0.0f, 0.0f, 0.0f,
504 0.0f, 0.27027027f, 0.0f, 0.0f,
505 0.0f, 0.0f, 0.15151515f, 0.0f,
506 0.0f, 0.0f, -0.48484848f, 1.0f);
512 13.288858f, 0.0f, 0.0f, 0.0f,
513 0.0f, 9.9666444f, 0.0f, 0.0f,
514 0.0f, 0.0f, 0.78378378f, 1.0f,
515 0.0f, 0.0f, 1.8810811f, 0.0f);
521 13.288858f, 0.0f, 0.0f, 0.0f,
522 0.0f, 9.9666444f, 0.0f, 0.0f,
523 0.0f, 0.0f, -0.78378378f, -1.0f,
524 0.0f, 0.0f, 1.8810811f, 0.0f);
530 -24.0f, 0.0f, 0.0f, 0.0f,
531 0.0f, -6.4f, 0.0f, 0.0f,
532 0.0f, 0.0f, 0.78378378f, 1.0f,
533 0.0f, 0.0f, 1.8810811f, 0.0f);
539 11.636364f, 0.0f, 0.0f, 0.0f,
540 0.0f, 0.57657658f, 0.0f, 0.0f,
541 -1.7272727f, -0.56756757f, 0.84079602f, 1.0f,
542 0.0f, 0.0f, -2.6905473f, 0.0f);
548 11.636364f, 0.0f, 0.0f, 0.0f,
549 0.0f, 0.57657658f, 0.0f, 0.0f,
550 1.7272727f, 0.56756757f, -0.84079602f, -1.0f,
551 0.0f, 0.0f, -2.6905473f, 0.0f);
557 -24.0f, -0.0f, 0.0f, 0.0f,
558 0.0f, -6.4f, 0.0f, 0.0f,
559 0.0f, 0.0f, -0.78378378f, -1.0f,
560 0.0f, 0.0f, 1.8810811f, 0.0f);
566 0.30769235f, -0.23076922f, 0.92307687f, 0.0f,
567 -0.23076922, 0.92307693f, 0.30769232f, 0.0f,
568 0.92307687f, 0.30769232f, -0.23076922f, 0.0f,
569 1.6153846f, 0.53846157f, -2.1538463f, 1.0f);
575 0.50847453f, 0.76380461f, 0.39756277f, 0.0f,
576 -0.81465209f, 0.57627118f, -0.065219201f, 0.0f,
577 -0.27891868f, -0.29071301f, 0.91525424f, 0.0f,
578 0.0f, 0.0f, 0.0f, 1.0f);
584 -129.0f, -162.0f, -74.0f, 0.0f,
585 146.0f, -99.0f, -78.0f, 0.0f,
586 102.0f, -34.0f, -33.0f, 0.0f,
587 0.0f, 0.0f, 0.0f, 1.0f);
593 1.0f, 0.0f, 0.0f, 0.0f,
594 0.0f, 0.5f,
sqrt(3.0f)/2.0f, 0.0f,
595 0.0f, -
sqrt(3.0f)/2.0f, 0.5f, 0.0f,
596 0.0f, 0.0f, 0.0f, 1.0f);
602 0.5f, 0.0f, -
sqrt(3.0f)/2.0f, 0.0f,
603 0.0f, 1.0f, 0.0f, 0.0f,
604 sqrt(3.0f)/2.0f, 0.0f, 0.5f, 0.0f,
605 0.0f, 0.0f, 0.0f, 1.0f);
611 0.88877726f, 0.091874748f, -0.44903678f, 0.0f,
612 0.35171318f, 0.49148652f, 0.79670501f, 0.0f,
613 0.29389259f, -0.86602545f, 0.40450847f, 0.0f,
614 0.0f, 0.0f, 0.0f, 1.0f);
620 0.5f,
sqrt(3.0f)/2.0f, 0.0f, 0.0f,
621 -
sqrt(3.0f)/2.0f, 0.5f, 0.0f, 0.0f,
622 0.0f, 0.0f, 1.0f, 0.0f,
623 0.0f, 0.0f, 0.0f, 1.0f);
629 0.69f, 0.0f, 0.0f, 0.0f,
630 0.0f, 0.53f, 0.0f, 0.0f,
631 0.0f, 0.0f, 4.11f, 0.0f,
632 0.0f, 0.0f, 0.0f, 1.0f);
638 12.786773f, 5.0009613f, 4.3537784f, 3.7065949f,
639 1.8827150f, 8.8056154f, 1.4512594f, 1.2355317f,
640 -7.5308599f, -6.6679487f, 1.3335901f, -4.9421268f,
641 -13.179006f, -11.668910f, -10.158816f, -1.5100943f);
647 1.0f, 0.0f, 0.0f, 0.0f,
648 0.0f, 1.0f, 0.0f, 0.0f,
649 0.0f, 0.0f, 1.0f, 0.0f,
650 0.0f, 0.0f, 0.0f, 1.0f);
655 1.0f, 0.0f, 0.0f, 0.0f,
656 0.0f, 1.0f, 0.0f, 0.0f,
657 0.0f, 0.0f, 1.0f, 0.0f,
658 9.7f, -8.6f, 1.3f, 1.0f);
663 -0.2148f, 1.3116f, 0.4752f, 0.0f,
664 0.9504f, -0.8836f, 0.9244f, 0.0f,
665 1.0212f, 0.1936f, -1.3588f, 0.0f,
666 0.0f, 0.0f, 0.0f, 1.0f);
671 1.0f, 0.0f, 0.0f, 0.0f,
672 0.0f, 1.0f, 0.0f, 0.0f,
673 0.0f, 0.0f, 1.0f, 0.0f,
674 0.0f, 0.0f, 0.0f, 1.0f);
679 1.0f, 0.0f, 0.0f, 0.0f,
680 0.0f, -3.0f, 0.0f, 0.0f,
681 0.0f, 0.0f, 7.0f, 0.0f,
682 0.0f, 0.0f, 0.0f, 1.0f);
687 1.0f, 0.0f, 0.0f, 0.0f,
688 0.0f, 1.0f, 0.0f, 0.0f,
689 0.0f, 0.0f, 1.0f, 0.0f,
690 0.0f, 0.0f, 0.0f, 1.0f);
695 1.0f, 0.0f, 0.0f, 0.0f,
696 0.0f, 1.0f, 0.0f, 0.0f,
697 0.0f, 0.0f, 1.0f, 0.0f,
698 0.0f, 0.0f, 0.0f, 1.0f);
703 -0.2148f, 1.3116f, 0.4752f, 0.0f,
704 0.9504f, -0.8836f, 0.9244f, 0.0f,
705 1.0212f, 0.1936f, -1.3588f, 0.0f,
706 9.7f, -8.6f, 1.3f, 1.0f);
711 1.0f, 0.0f, 0.0f, 0.0f,
712 0.0f, 1.0f, 0.0f, 0.0f,
713 0.0f, 0.0f, 1.0f, 0.0f,
714 9.7f, -8.6f, 1.3f, 1.0f);
719 1.0f, 0.0f, 0.0f, 0.0f,
720 0.0f, -3.0f, 0.0f, 0.0f,
721 0.0f, 0.0f, 7.0f, 0.0f,
722 9.7f, -8.6f, 1.3f, 1.0f);
727 1.0f, 0.0f, 0.0f, 0.0f,
728 0.0f, 1.0f, 0.0f, 0.0f,
729 0.0f, 0.0f, 1.0f, 0.0f,
730 9.7f, -8.6f, 1.3f, 1.0f);
735 1.0f, 0.0f, 0.0f, 0.0f,
736 0.0f, 1.0f, 0.0f, 0.0f,
737 0.0f, 0.0f, 1.0f, 0.0f,
738 9.7f, -8.6f, 1.3f, 1.0f);
743 -0.2148f, 1.3116f, 0.4752f, 0.0f,
744 0.9504f, -0.8836f, 0.9244f, 0.0f,
745 1.0212f, 0.1936f, -1.3588f, 0.0f,
746 8.5985f, -21.024f, 14.383499, 1.0f);
751 -0.2148f, 1.3116f, 0.4752f, 0.0f,
752 -2.8512f, 2.6508f, -2.7732f, 0.0f,
753 7.148399f, 1.3552f, -9.5116f, 0.0f,
754 0.0f, 0.0f, 0.0f, 1.0f);
759 -0.2148f, 1.3116f, 0.4752f, 0.0f,
760 0.9504f, -0.8836f, 0.9244f, 0.0f,
761 1.0212f, 0.1936f, -1.3588f, 0.0f,
762 0.0f, 0.0f, 0.0f, 1.0f);
767 -0.2148f, 1.3116f, 0.4752f, 0.0f,
768 0.9504f, -0.8836f, 0.9244f, 0.0f,
769 1.0212f, 0.1936f, -1.3588f, 0.0f,
770 0.0f, 0.0f, 0.0f, 1.0f);
775 1.0f, 0.0f, 0.0f, 0.0f,
776 0.0f, -3.0f, 0.0f, 0.0f,
777 0.0f, 0.0f, 7.0f, 0.0f,
778 0.0f, 0.0f, 0.0f, 1.0f);
783 1.0f, 0.0f, 0.0f, 0.0f,
784 0.0f, 1.0f, 0.0f, 0.0f,
785 0.0f, 0.0f, 1.0f, 0.0f,
786 0.0f, 0.0f, 0.0f, 1.0f);
791 1.0f, 0.0f, 0.0f, 0.0f,
792 0.0f, 1.0f, 0.0f, 0.0f,
793 0.0f, 0.0f, 1.0f, 0.0f,
794 0.0f, 0.0f, 0.0f, 1.0f);
799 25521.0f, 39984.0f, 20148.0f, 0.0f,
800 39984.0f, 4933.0f, -3324.0f, 0.0f,
801 20148.0f, -3324.0f, -5153.0f, 0.0f,
802 0.0f, 0.0f, 0.0f, 1.0f);
807 1.0f, 0.0f, 0.0f, 0.0f,
808 0.0f, -3.0f, 0.0f, 0.0f,
809 0.0f, 0.0f, 7.0f, 0.0f,
810 0.0f, 52.0f, 54.0f, 1.0f);
815 1.0f, 0.0f, 0.0f, 0.0f,
816 0.0f, 1.0f, 0.0f, 0.0f,
817 0.0f, 0.0f, 1.0f, 0.0f,
818 0.0f, 0.0f, 0.0f, 1.0f);
823 -0.2148f, 1.3116f, 0.4752f, 0.0f,
824 0.9504f, -0.8836f, 0.9244f, 0.0f,
825 1.0212f, 0.1936f, -1.3588f, 0.0f,
826 18.2985f, -29.624001f, 15.683499f, 1.0f);
831 -0.2148f, 1.3116f, 0.4752f, 0.0f,
832 -2.8512f, 2.6508f, -2.7732f, 0.0f,
833 7.148399f, 1.3552f, -9.5116f, 0.0f,
834 9.7f, -8.6f, 1.3f, 1.0f);
839 -0.2148f, 1.3116f, 0.4752f, 0.0f,
840 0.9504f, -0.8836f, 0.9244f, 0.0f,
841 1.0212f, 0.1936f, -1.3588f, 0.0f,
842 9.7f, -8.6f, 1.3f, 1.0f);
847 -0.2148f, 1.3116f, 0.4752f, 0.0f,
848 0.9504f, -0.8836f, 0.9244f, 0.0f,
849 1.0212f, 0.1936f, -1.3588f, 0.0f,
850 9.7f, -8.6f, 1.3f, 1.0f);
855 1.0f, 0.0f, 0.0f, 0.0f,
856 0.0f, -3.0f, 0.0f, 0.0f,
857 0.0f, 0.0f, 7.0f, 0.0f,
858 9.7f, -8.6f, 1.3f, 1.0f);
863 1.0f, 0.0f, 0.0f, 0.0f,
864 0.0f, 1.0f, 0.0f, 0.0f,
865 0.0f, 0.0f, 1.0f, 0.0f,
866 9.7f, -8.6f, 1.3f, 1.0f);
871 1.0f, 0.0f, 0.0f, 0.0f,
872 0.0f, 1.0f, 0.0f, 0.0f,
873 0.0f, 0.0f, 1.0f, 0.0f,
874 9.7f, -8.6f, 1.3f, 1.0f);
879 25521.0f, 39984.0f, 20148.0f, 0.0f,
880 39984.0f, 4933.0f, -3324.0f, 0.0f,
881 20148.0f, -3324.0f, -5153.0f, 0.0f,
882 9.7f, -8.6f, 1.3f, 1.0f);
887 1.0f, 0.0f, 0.0f, 0.0f,
888 0.0f, -3.0f, 0.0f, 0.0f,
889 0.0f, 0.0f, 7.0f, 0.0f,
890 9.7f, 43.400002f, 55.299999f, 1.0f);
895 1.0f, 0.0f, 0.0f, 0.0f,
896 0.0f, 1.0f, 0.0f, 0.0f,
897 0.0f, 0.0f, 1.0f, 0.0f,
898 9.7f, -8.6f, 1.3f, 1.0f);
903 -0.2148f, 1.3116f, 0.4752f, 0.0f,
904 -2.8512f, 2.6508f, -2.7732f, 0.0f,
905 7.148399f, 1.3552f, -9.5116f, 0.0f,
906 8.5985f, -21.024f, 14.383499, 1.0f);
911 -0.2148f, 1.3116f, 0.4752f, 0.0f,
912 0.9504f, -0.8836f, 0.9244f, 0.0f,
913 1.0212f, 0.1936f, -1.3588f, 0.0f,
914 8.5985f, -21.024f, 14.383499, 1.0f);
919 -0.2148f, 1.3116f, 0.4752f, 0.0f,
920 0.9504f, -0.8836f, 0.9244f, 0.0f,
921 1.0212f, 0.1936f, -1.3588f, 0.0f,
922 8.5985f, -21.024f, 14.383499, 1.0f);
927 53094.015625f, 2044.133789f, 21711.687500f, 0.0f,
928 -7294.705078f, 47440.683594f, 28077.113281, 0.0f,
929 -12749.161133f, 28365.580078f, 13503.520508f, 0.0f,
930 0.0f, 0.0f, 0.0f, 1.0f);
935 -0.2148f, 1.3116f, 0.4752f, 0.0f,
936 -2.8512f, 2.6508f, -2.7732f, 0.0f,
937 7.148399f, 1.3552f, -9.5116f, 0.0f,
938 104.565598f, -35.492798f, -25.306400f, 1.0f);
943 -0.2148f, 1.3116f, 0.4752f, 0.0f,
944 0.9504f, -0.8836f, 0.9244f, 0.0f,
945 1.0212f, 0.1936f, -1.3588f, 0.0f,
946 0.0f, 0.0f, 0.0f, 1.0f);
951 25521.0f, 39984.0f, 20148.0f, 0.0f,
952 39984.0f, 4933.0f, -3324.0f, 0.0f,
953 20148.0f, -3324.0f, -5153.0f, 0.0f,
954 0.0f, 0.0f, 0.0f, 1.0f);
959 1.0f, 0.0f, 0.0f, 0.0f,
960 0.0f, -3.0f, 0.0f, 0.0f,
961 0.0f, 0.0f, 7.0f, 0.0f,
962 0.0f, 52.0f, 54.0f, 1.0f);
967 1.0f, 0.0f, 0.0f, 0.0f,
968 0.0f, 1.0f, 0.0f, 0.0f,
969 0.0f, 0.0f, 1.0f, 0.0f,
970 0.0f, 0.0f, 0.0f, 1.0f);
975 25521.0f, 39984.0f, 20148.0f, 0.0f,
976 39984.0f, 4933.0f, -3324.0f, 0.0f,
977 20148.0f, -3324.0f, -5153.0f, 0.0f,
978 -287420.0f, -14064.0f, 37122.0f, 1.0f);
983 -0.2148f, 1.3116f, 0.4752f, 0.0f,
984 -2.8512f, 2.6508f, -2.7732f, 0.0f,
985 7.148399f, 1.3552f, -9.5116f, 0.0f,
986 18.2985f, -29.624001f, 15.683499f, 1.0f);
991 -0.2148f, 1.3116f, 0.4752f, 0.0f,
992 0.9504f, -0.8836f, 0.9244f, 0.0f,
993 1.0212f, 0.1936f, -1.3588f, 0.0f,
994 18.2985f, -29.624001f, 15.683499f, 1.0f);
999 -0.2148f, 1.3116f, 0.4752f, 0.0f,
1000 0.9504f, -0.8836f, 0.9244f, 0.0f,
1001 1.0212f, 0.1936f, -1.3588f, 0.0f,
1002 18.2985f, -29.624001f, 15.683499f, 1.0f);
1007 53094.015625f, 2044.133789f, 21711.687500f, 0.0f,
1008 -7294.705078f, 47440.683594f, 28077.113281, 0.0f,
1009 -12749.161133f, 28365.580078f, 13503.520508f, 0.0f,
1010 9.7f, -8.6f, 1.3f, 1.0f);
1015 -0.2148f, 1.3116f, 0.4752f, 0.0f,
1016 -2.8512f, 2.6508f, -2.7732f, 0.0f,
1017 7.148399f, 1.3552f, -9.5116f, 0.0f,
1018 114.265594f, -44.092796f, -24.006401f, 1.0f);
1023 -0.2148f, 1.3116f, 0.4752f, 0.0f,
1024 0.9504f, -0.8836f, 0.9244f, 0.0f,
1025 1.0212f, 0.1936f, -1.3588f, 0.0f,
1026 9.7f, -8.6f, 1.3f, 1.0f);
1031 25521.0f, 39984.0f, 20148.0f, 0.0f,
1032 39984.0f, 4933.0f, -3324.0f, 0.0f,
1033 20148.0f, -3324.0f, -5153.0f, 0.0f,
1034 9.7f, -8.6f, 1.3f, 1.0f);
1039 1.0f, 0.0f, 0.0f, 0.0f,
1040 0.0f, -3.0f, 0.0f, 0.0f,
1041 0.0f, 0.0f, 7.0f, 0.0f,
1042 9.7f, 43.400002f, 55.299999f, 1.0f);
1047 1.0f, 0.0f, 0.0f, 0.0f,
1048 0.0f, 1.0f, 0.0f, 0.0f,
1049 0.0f, 0.0f, 1.0f, 0.0f,
1050 9.7f, -8.6f, 1.3f, 1.0f);
1055 25521.0f, 39984.0f, 20148.0f, 0.0f,
1056 39984.0f, 4933.0f, -3324.0f, 0.0f,
1057 20148.0f, -3324.0f, -5153.0f, 0.0f,
1058 -287410.3125f, -14072.599609f, 37123.300781f, 1.0f);
1063 53094.015625f, 2044.133789f, 21711.687500f, 0.0f,
1064 -7294.705078f, 47440.683594f, 28077.113281, 0.0f,
1065 -12749.161133f, 28365.580078f, 13503.520508f, 0.0f,
1066 8.598499f, -21.024f, 14.383499f, 1.0f);
1071 -0.2148f, 1.3116f, 0.4752f, 0.0f,
1072 -2.8512f, 2.6508f, -2.7732f, 0.0f,
1073 7.148399f, 1.3552f, -9.5116f, 0.0f,
1074 113.164093f, -56.5168f, -10.922897f, 1.0f);
1079 -0.2148f, 1.3116f, 0.4752f, 0.0f,
1080 0.9504f, -0.8836f, 0.9244f, 0.0f,
1081 1.0212f, 0.1936f, -1.3588f, 0.0f,
1082 8.5985f, -21.024f, 14.383499, 1.0f);
1087 53094.015625f, 2044.133789f, 21711.687500f, 0.0f,
1088 -7294.705078f, 47440.683594f, 28077.113281, 0.0f,
1089 -12749.161133f, 28365.580078f, 13503.520508f, 0.0f,
1090 86280.34375f, -357366.3125f, -200024.125f, 1.0f);
1095 25521.0f, 39984.0f, 20148.0f, 0.0f,
1096 39984.0f, 4933.0f, -3324.0f, 0.0f,
1097 20148.0f, -3324.0f, -5153.0f, 0.0f,
1098 -287410.3125f, -14064.0f, 37122.0f, 1.0f);
1103 53094.015625f, 2044.133789f, 21711.687500f, 0.0f,
1104 -7294.705078f, 47440.683594f, 28077.113281, 0.0f,
1105 -12749.161133f, 28365.580078f, 13503.520508f, 0.0f,
1106 86280.34375f, -357366.3125f, -200009.75f, 1.0f);
1111 25521.0f, 39984.0f, 20148.0f, 0.0f,
1112 39984.0f, 4933.0f, -3324.0f, 0.0f,
1113 20148.0f, -3324.0f, -5153.0f, 0.0f,
1114 -287410.3125f, -14072.599609f, 37123.300781f, 1.0f);
1119 53094.015625f, 2044.133789f, 21711.687500f, 0.0f,
1120 -7294.705078f, 47440.683594f, 28077.113281, 0.0f,
1121 -12749.161133f, 28365.580078f, 13503.520508f, 0.0f,
1122 86290.046875f, -357374.90625f, -200022.828125f, 1.0f);
1127 -0.21480007f, 1.3116000f, 0.47520003f, 0.0f,
1128 0.95040143f, -0.88360137f, 0.92439979f, 0.0f,
1129 1.0212044f, 0.19359307f, -1.3588026f, 0.0f,
1130 18.298532f, -29.624001f, 15.683499f, 1.0f);
1135 -0.2148f, 1.3116f, 0.4752f, 0.0f,
1136 -2.8512f, 2.6508f, -2.7732f, 0.0f,
1137 7.148399f, 1.3552f, -9.5116f, 0.0f,
1138 122.86409f, -65.116798f, -9.622897f, 1.0f);
1143 53094.015625f, 2044.133789f, 21711.687500f, 0.0f,
1144 -7294.705078f, 47440.683594f, 28077.113281, 0.0f,
1145 -12749.161133f, 28365.580078f, 13503.520508f, 0.0f,
1146 18.2985f, -29.624001f, 15.683499f, 1.0f);
1150 q.x = 1.0f;
q.y = 1.0f;
q.z = 1.0f;
q.w = 1.0f;
1151 axis.
x = 1.0f; axis.
y = 1.0f; axis.
z = 2.0f;
1154 41.0f, -12.0f, -24.0f, 0.0f,
1155 -12.0f, 25.0f, -12.0f, 0.0f,
1156 -24.0f, -12.0f, 34.0f, 0.0f,
1157 0.0f, 0.0f, 0.0f, 1.0f);
1161 q.x = 1.0f;
q.y = 1.0f;
q.z = 1.0f;
q.w = 1.0f;
1162 axis.
x = 1.0f; axis.
y = 1.0f; axis.
z = 3.0f;
1165 57.0f, -12.0f, -36.0f, 0.0f,
1166 -12.0f, 25.0f, -12.0f, 0.0f,
1167 -36.0f, -12.0f, 43.0f, 0.0f,
1168 0.0f, 0.0f, 0.0f, 1.0f);
1172 q.x = 1.0f;
q.y = 1.0f;
q.z = 1.0f;
q.w = 0.0f;
1173 axis.
x = 1.0f; axis.
y = 1.0f; axis.
z = 3.0f;
1176 25.0f, 0.0f, -20.0f, 0.0f,
1177 0.0f, 25.0f, -20.0f, 0.0f,
1178 -20.0f, -20.0f, 35.0f, 0.0f,
1179 0.0f, 0.0f, 0.0f, 1.0f);
1183 q.x = 1.0f;
q.y = 1.0f;
q.z = 0.0f;
q.w = 0.0f;
1184 axis.
x = 1.0f; axis.
y = 1.0f; axis.
z = 3.0f;
1187 5.0f, -4.0f, 0.0f, 0.0f,
1188 -4.0f, 5.0f, 0.0f, 0.0f,
1189 0.0f, 0.0f, 27.0f, 0.0f,
1190 0.0f, 0.0f, 0.0f, 1.0f);
1194 q.x = 1.0f;
q.y = 0.0f;
q.z = 0.0f;
q.w = 0.0f;
1195 axis.
x = 5.0f; axis.
y = 2.0f; axis.
z = 1.0f;
1198 5.0f, 0.0f, 0.0f, 0.0f,
1199 0.0f, 2.0f, 0.0f, 0.0f,
1200 0.0f, 0.0f, 1.0f, 0.0f,
1201 0.0f, 0.0f, 0.0f, 1.0f);
1205 q.x = 1.0f;
q.y = 0.0f;
q.z = 0.0f;
q.w = 0.0f;
1206 axis.
x = 1.0f; axis.
y = 4.0f; axis.
z = 1.0f;
1209 1.0f, 0.0f, 0.0f, 0.0f,
1210 0.0f, 4.0f, 0.0f, 0.0f,
1211 0.0f, 0.0f, 1.0f, 0.0f,
1212 0.0f, 0.0f, 0.0f, 1.0f);
1216 q.x = 0.0f;
q.y = 1.0f;
q.z = 0.0f;
q.w = 0.0f;
1217 axis.
x = 1.0f; axis.
y = 4.0f; axis.
z = 1.0f;
1220 1.0f, 0.0f, 0.0f, 0.0f,
1221 0.0f, 4.0f, 0.0f, 0.0f,
1222 0.0f, 0.0f, 1.0f, 0.0f,
1223 0.0f, 0.0f, 0.0f, 1.0f);
1227 q.x = 1.0f;
q.y = 0.0f;
q.z = 0.0f;
q.w = 1.0f;
1228 axis.
x = 1.0f; axis.
y = 4.0f; axis.
z = 1.0f;
1231 1.0f, 0.0f, 0.0f, 0.0f,
1232 0.0f, 8.0f, -6.0f, 0.0f,
1233 0.0f, -6.0f, 17.0f, 0.0f,
1234 0.0f, 0.0f, 0.0f, 1.0f);
1238 q.x = 1.0f;
q.y = 0.0f;
q.z = 0.0f;
q.w = 1.0f;
1239 axis.
x = 0.0f; axis.
y = 4.0f; axis.
z = 0.0f;
1242 0.0f, 0.0f, 0.0f, 0.0f,
1243 0.0f, 4.0f, -8.0f, 0.0f,
1244 0.0f, -8.0f, 16.0f, 0.0f,
1245 0.0f, 0.0f, 0.0f, 1.0f);
1249 q.x = 0.0f;
q.y = 1.0f;
q.z = 0.0f;
q.w = 1.0f;
1250 axis.
x = 1.0f; axis.
y = 4.0f; axis.
z = 1.0f;
1253 5.0f, 0.0f, 0.0f, 0.0f,
1254 0.0f, 4.0f, 0.0f, 0.0f,
1255 0.0f, 0.0f, 5.0f, 0.0f,
1256 0.0f, 0.0f, 0.0f, 1.0f);
1260 q.x = 1.0f;
q.y = 0.0f;
q.z = 0.0f;
q.w = 0.0f;
1261 axis.
x = 1.0f; axis.
y = 1.0f; axis.
z = 3.0f;
1264 1.0f, 0.0f, 0.0f, 0.0f,
1265 0.0f, 1.0f, 0.0f, 0.0f,
1266 0.0f, 0.0f, 3.0f, 0.0f,
1267 0.0f, 0.0f, 0.0f, 1.0f);
1271 q.x = 11.0f;
q.y = 13.0f;
q.z = 15.0f;
q.w = 17.0f;
1272 axis.
x = 3.0f; axis.
y = 3.0f; axis.
z = 3.0f;
1275 3796587.0f, -1377948.0f, -1589940.0f, 0.0f,
1276 -1377948.0f, 3334059.0f, -1879020.0f, 0.0f,
1277 -1589940.0f, -1879020.0f, 2794443.0f, 0.0f,
1278 0.0f, 0.0f, 0.0f, 1.0f);
1282 q.x = 11.0f;
q.y = 13.0f;
q.z = 15.0f;
q.w = 17.0f;
1283 axis.
x = 1.0f; axis.
y = 1.0f; axis.
z = 1.0f;
1286 1265529.0f, -459316.0f, -529980.0f, 0.0f,
1287 -459316.0f, 1111353.0f, -626340.0f, 0.0f,
1288 -529980.0f, -626340.0f, 931481.0f, 0.0f,
1289 0.0f, 0.0f, 0.0f, 1.0f);
1293 q.x = 11.0f;
q.y = 13.0f;
q.z = 15.0f;
q.w = 17.0f;
1294 axis.
x = 1.0f; axis.
y = 1.0f; axis.
z = 3.0f;
1297 2457497.0f, -434612.0f, -1423956.0f, 0.0f,
1298 -434612.0f, 1111865.0f, -644868.0f, 0.0f,
1299 -1423956.0f, -644868.0f, 1601963.0f, 0.0f,
1300 0.0f, 0.0f, 0.0f, 1.0f);
1304 q.x = 11.0f;
q.y = 13.0f;
q.z = 15.0f;
q.w = 17.0f;
1305 axis.
x = 0.0f; axis.
y = 0.0f; axis.
z = 3.0f;
1308 1787952.0f, 37056.0f, -1340964.0f, 0.0f,
1309 37056.0f, 768.0f, -27792.0f, 0.0f,
1310 -1340964.0f, -27792.0f, 1005723.0f, 0.0f,
1311 0.0f, 0.0f, 0.0f, 1.0f);
1315 q.x = 11.0f;
q.y = 13.0f;
q.z = 15.0f;
q.w = 17.0f;
1316 axis.
x = 0.0f; axis.
y = 0.0f; axis.
z = 1.0f;
1319 595984.0f, 12352.0f, -446988.0f, 0.0f,
1320 12352.0f, 256.0f, -9264.0f, 0.0f,
1321 -446988.0f, -9264.0f, 335241.0f, 0.0f,
1322 0.0f, 0.0f, 0.0f, 1.0f);
1326 q.x = 11.0f;
q.y = 13.0f;
q.z = 15.0f;
q.w = 17.0f;
1327 axis.
x = 0.0f; axis.
y = 3.0f; axis.
z = 0.0f;
1330 150528.0f, 464352.0f, -513408.0f, 0.0f,
1331 464352.0f, 1432443.0f, -1583772.0f, 0.0f,
1332 -513408.0f, -1583772.0f, 1751088.0f, 0.0f,
1333 0.0f, 0.0f, 0.0f, 1.0f);
1337 q.x = 11.0f;
q.y = 13.0f;
q.z = 15.0f;
q.w = 17.0f;
1338 axis.
x = 0.0f; axis.
y = 1.0f; axis.
z = 0.0f;
1341 50176.0f, 154784.0f, -171136.0f, 0.0f,
1342 154784.0f, 477481.0f, -527924.0f, 0.0f,
1343 -171136.0f, -527924.0f, 583696.0f, 0.0f,
1344 0.0f, 0.0f, 0.0f, 1.0f);
1348 q.x = 11.0f;
q.y = 13.0f;
q.z = 15.0f;
q.w = 17.0f;
1349 axis.
x = 1.0f; axis.
y = 0.0f; axis.
z = 0.0f;
1352 619369.0f, -626452.0f, 88144.0f, 0.0f,
1353 -626452.0f, 633616.0f, -89152.0f, 0.0f,
1354 88144.0f, -89152, 12544.0f, 0.0f,
1355 0.0f, 0.0f, 0.0f, 1.0f);
1361 1.0f, 0.0f, 0.0f, 0.0f,
1362 0.0f, 1.0f, 0.0f, 0.0f,
1363 0.0f, 0.0f, 1.0f, 0.0f,
1364 0.69f, 0.53f, 4.11f, 1.0f);
1370 10.0f, 11.0f, 19.0f, 2.0f,
1371 5.0f, 20.0f, -21.0f, 3.0f,
1372 7.0f, 16.0f, 30.f, -4.0f,
1373 8.0f, 33.0f, 43.0f, -40.0f);
1382 D3DXVECTOR3 expectedvec, gotvec, vec1, vec2, vec3;
1387 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1388 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1389 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1390 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1391 U(
mat).m[0][0] = 10.0f;
U(
mat).m[1][1] = 20.0f;
U(
mat).m[2][2] = 30.0f;
1392 U(
mat).m[3][3] = -40.0f;
1403 got = D3DXPlaneDot(
NULL, &
vec);
1411 got = D3DXPlaneDotCoord(&
plane, &
vec);
1414 got = D3DXPlaneDotCoord(
NULL, &
vec);
1417 got = D3DXPlaneDotCoord(
NULL,
NULL);
1422 got = D3DXPlaneDotNormal(&
plane, &
vec);
1425 got = D3DXPlaneDotNormal(
NULL, &
vec);
1428 got = D3DXPlaneDotNormal(
NULL,
NULL);
1432 vec1.
x = 11.0f; vec1.
y = 13.0f; vec1.
z = 15.0f;
1433 vec2.
x = 17.0f; vec2.
y = 31.0f; vec2.
z = 24.0f;
1434 expectedplane.
a = 17.0f; expectedplane.
b = 31.0f; expectedplane.
c = 24.0f; expectedplane.
d = -950.0f;
1437 gotplane.
a = vec2.
x; gotplane.
b = vec2.
y; gotplane.
c = vec2.
z;
1440 gotplane.
a = vec1.
x; gotplane.
b = vec1.
y; gotplane.
c = vec1.
z;
1441 expectedplane.
d = -1826.0f;
1446 vec1.
x = 1.0f; vec1.
y = 2.0f; vec1.
z = 3.0f;
1447 vec2.
x = 1.0f; vec2.
y = -6.0f; vec2.
z = -5.0f;
1448 vec3.
x = 83.0f; vec3.
y = 74.0f; vec3.
z = 65.0f;
1449 expectedplane.
a = 0.085914f; expectedplane.
b = -0.704492f; expectedplane.
c = 0.704492f; expectedplane.
d = -0.790406f;
1454 vec1.
x = 9.0f; vec1.
y = 6.0f; vec1.
z = 3.0f;
1455 vec2.
x = 2.0f; vec2.
y = 5.0f; vec2.
z = 8.0f;
1456 expectedvec.
x = 20.0f/3.0f; expectedvec.
y = 17.0f/3.0f; expectedvec.
z = 14.0f/3.0f;
1460 vec1.
x = 11.0f; vec1.
y = 13.0f; vec1.
z = 15.0f;
1461 vec2.
x = 17.0f; vec2.
y = 31.0f; vec2.
z = 24.0f;
1462 expectedvec.
x = 20.0f/3.0f; expectedvec.
y = 17.0f/3.0f; expectedvec.
z = 14.0f/3.0f;
1464 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1467 expectedplane.
a = -3.0f/
sqrt(26.0f); expectedplane.
b = -1.0f/
sqrt(26.0f); expectedplane.
c = 4.0f/
sqrt(26.0f); expectedplane.
d = 7.0/
sqrt(26.0f);
1470 nulplane.
a = 0.0; nulplane.
b = 0.0f; nulplane.
c = 0.0f; nulplane.
d = 0.0f;
1471 expectedplane.
a = 0.0f; expectedplane.
b = 0.0f; expectedplane.
c = 0.0f; expectedplane.
d = 0.0f;
1476 expectedplane.
a = 49.0f; expectedplane.
b = -98.0f; expectedplane.
c = 55.0f; expectedplane.
d = -165.0f;
1484 D3DXQUATERNION expectedquat, gotquat, Nq, Nq1, nul, smallq, smallr,
q,
r,
s,
t,
u;
1490 nul.
x = 0.0f; nul.
y = 0.0f; nul.
z = 0.0f; nul.
w = 0.0f;
1491 q.x = 1.0f;
q.y = 2.0f;
q.z = 4.0f;
q.w = 10.0f;
1492 r.x = -3.0f;
r.y = 4.0f;
r.z = -5.0f;
r.w = 7.0;
1493 t.x = -1111.0f;
t.y = 111.0f;
t.z = -11.0f;
t.w = 1.0f;
1494 u.x = 91.0f;
u.y = - 82.0f;
u.z = 7.3f;
u.w = -6.4f;
1495 smallq.
x = 0.1f; smallq.
y = 0.2f; smallq.
z= 0.3f; smallq.
w = 0.4f;
1496 smallr.
x = 0.5f; smallr.
y = 0.6f; smallr.
z= 0.7f; smallr.
w = 0.8f;
1502 expectedquat.
x = -867.444458; expectedquat.
y = 87.851111f; expectedquat.
z = -9.937778f; expectedquat.
w = 3.235555f;
1507 expectedquat.
x = -1.0f; expectedquat.
y = -2.0f; expectedquat.
z = -4.0f; expectedquat.
w = 10.0f;
1508 D3DXQuaternionConjugate(&gotquat,&
q);
1511 funcpointer = D3DXQuaternionConjugate(&gotquat,
NULL);
1512 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1513 funcpointer = D3DXQuaternionConjugate(
NULL,
NULL);
1514 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1517 got = D3DXQuaternionDot(&
q,&
r);
1519 ok(
equal,
"Got unexpected dot %.8e.\n", got);
1521 got = D3DXQuaternionDot(
NULL,&
r);
1523 ok(
equal,
"Got unexpected dot %.8e.\n", got);
1524 got = D3DXQuaternionDot(
NULL,
NULL);
1526 ok(
equal,
"Got unexpected dot %.8e.\n", got);
1529 expectedquat.
x = -0.216382f; expectedquat.
y = -0.432764f; expectedquat.
z = -0.8655270f; expectedquat.
w = -0.129449f;
1533 expectedquat.
x = 0.0f; expectedquat.
y = 0.0f; expectedquat.
z = 0.0f; expectedquat.
w = 1.0f;
1537 Nq1.
x = 0.2f; Nq1.
y = 0.1f; Nq1.
z = 0.3; Nq1.
w= 0.9f;
1538 expectedquat.
x = 0.195366; expectedquat.
y = 0.097683f; expectedquat.
z = 0.293049f; expectedquat.
w = 0.930813f;
1543 expectedquat.
x = 0.0f; expectedquat.
y = 0.0f; expectedquat.
z = 0.0f; expectedquat.
w = 1.0f;
1544 D3DXQuaternionIdentity(&gotquat);
1547 funcpointer = D3DXQuaternionIdentity(
NULL);
1548 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1551 expectedquat.
x = -1.0f/121.0f; expectedquat.
y = -2.0f/121.0f; expectedquat.
z = -4.0f/121.0f; expectedquat.
w = 10.0f/121.0f;
1555 expectedquat.
x = 1.0f; expectedquat.
y = 2.0f; expectedquat.
z = 4.0f; expectedquat.
w = 10.0f;
1561 s.x = 0.0f;
s.y = 0.0f;
s.z = 0.0f;
s.w = 1.0f;
1562 expectedbool =
TRUE;
1563 gotbool = D3DXQuaternionIsIdentity(&
s);
1564 ok( expectedbool == gotbool,
"Expected boolean : %d, Got bool : %d\n", expectedbool, gotbool);
1565 s.x = 2.3f;
s.y = -4.2f;
s.z = 1.2f;
s.w=0.2f;
1566 expectedbool =
FALSE;
1567 gotbool = D3DXQuaternionIsIdentity(&
q);
1568 ok( expectedbool == gotbool,
"Expected boolean : %d, Got bool : %d\n", expectedbool, gotbool);
1570 gotbool = D3DXQuaternionIsIdentity(
NULL);
1571 ok(gotbool ==
FALSE,
"Expected boolean: %d, Got boolean: %d\n",
FALSE, gotbool);
1574 got = D3DXQuaternionLength(&
q);
1576 ok(
equal,
"Got unexpected length %.8e.\n", got);
1578 got = D3DXQuaternionLength(
NULL);
1580 ok(
equal,
"Got unexpected length %.8e.\n", got);
1583 got = D3DXQuaternionLengthSq(&
q);
1585 ok(
equal,
"Got unexpected length %.8e.\n", got);
1587 got = D3DXQuaternionLengthSq(
NULL);
1589 ok(
equal,
"Got unexpected length %.8e.\n", got);
1592 expectedquat.
x = 1.0f; expectedquat.
y = 2.0f; expectedquat.
z = 4.0f; expectedquat.
w = 0.0f;
1595 expectedquat.
x = -3.0f; expectedquat.
y = 4.0f; expectedquat.
z = -5.0f; expectedquat.
w = 0.0f;
1598 Nq.
x = 1.0f/11.0f; Nq.
y = 2.0f/11.0f; Nq.
z = 4.0f/11.0f; Nq.
w=10.0f/11.0f;
1599 expectedquat.
x = 0.093768f; expectedquat.
y = 0.187536f; expectedquat.
z = 0.375073f; expectedquat.
w = 0.0f;
1602 Nq.
x = 0.0f; Nq.
y = 0.0f; Nq.
z = 0.0f; Nq.
w = 1.0f;
1603 expectedquat.
x = 0.0f; expectedquat.
y = 0.0f; expectedquat.
z = 0.0f; expectedquat.
w = 0.0f;
1606 Nq.
x = 5.4f; Nq.
y = 1.2f; Nq.
z = -0.3f; Nq.
w = -0.3f;
1607 expectedquat.
x = 10.616652f; expectedquat.
y = 2.359256f; expectedquat.
z = -0.589814f; expectedquat.
w = 0.0f;
1611 Nq1.
x = 0.2f; Nq1.
y = 0.1f; Nq1.
z = 0.3; Nq1.
w = 0.9f;
1612 expectedquat.
x = 0.206945f; expectedquat.
y = 0.103473f; expectedquat.
z = 0.310418f; expectedquat.
w = 0.0f;
1616 Nq1.
x = 0.2f; Nq1.
y = 0.1f; Nq1.
z = 0.3; Nq1.
w = -1.0f;
1617 expectedquat.
x = 0.2f; expectedquat.
y = 0.1f; expectedquat.
z = 0.3f; expectedquat.
w = 0.0f;
1622 expectedquat.
x = 3.0f; expectedquat.
y = 61.0f; expectedquat.
z = -32.0f; expectedquat.
w = 85.0f;
1627 expectedquat.
x = 1.0f/11.0f; expectedquat.
y = 2.0f/11.0f; expectedquat.
z = 4.0f/11.0f; expectedquat.
w = 10.0f/11.0f;
1632 axis.
x = 2.0f; axis.
y = 7.0; axis.
z = 13.0f;
1634 expectedquat.
x = 0.067116; expectedquat.
y = 0.234905f; expectedquat.
z = 0.436251f; expectedquat.
w = 0.866025f;
1638 axis.
x = 0.0f; axis.
y = 0.0; axis.
z = 0.0f;
1639 expectedquat.
x = 0.0f; expectedquat.
y = 0.0f; expectedquat.
z = 0.0f; expectedquat.
w = 0.866025f;
1645 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1646 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1647 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1648 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1649 U(
mat).m[0][0] = 10.0f;
U(
mat).m[1][1] = 20.0f;
U(
mat).m[2][2] = 30.0f;
1650 U(
mat).m[3][3] = 48.0f;
1651 expectedquat.
x = 2.368682f; expectedquat.
y = 0.768221f; expectedquat.
z = -0.384111f; expectedquat.
w = 3.905125f;
1655 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1656 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1657 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1658 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1659 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = -60.0f;
U(
mat).m[2][2] = 40.0f;
1660 U(
mat).m[3][3] = 48.0f;
1661 expectedquat.
x = 1.233905f; expectedquat.
y = -0.237290f; expectedquat.
z = 5.267827f; expectedquat.
w = -0.284747f;
1665 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1666 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1667 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1668 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1669 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 60.0f;
U(
mat).m[2][2] = -80.0f;
1670 U(
mat).m[3][3] = 48.0f;
1671 expectedquat.
x = 0.651031f; expectedquat.
y = 6.144103f; expectedquat.
z = -0.203447f; expectedquat.
w = 0.488273f;
1675 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1676 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1677 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1678 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1679 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = -0.9f;
1680 U(
mat).m[3][3] = 48.0f;
1681 expectedquat.
x = 1.709495f; expectedquat.
y = 2.339872f; expectedquat.
z = -0.534217f; expectedquat.
w = 1.282122f;
1685 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1686 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1687 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1688 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1689 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = -0.51f;
1690 U(
mat).m[3][3] = 48.0f;
1691 expectedquat.
x = 1.724923f; expectedquat.
y = 2.318944f; expectedquat.
z = -0.539039f; expectedquat.
w = 1.293692f;
1695 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1696 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1697 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1698 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1699 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = -0.49f;
1700 U(
mat).m[3][3] = 48.0f;
1701 expectedquat.
x = 1.725726f; expectedquat.
y = 2.317865f; expectedquat.
z = -0.539289f; expectedquat.
w = 1.294294f;
1705 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1706 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1707 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1708 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1709 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = -0.01f;
1710 U(
mat).m[3][3] = 48.0f;
1711 expectedquat.
x = 1.745328f; expectedquat.
y = 2.291833f; expectedquat.
z = -0.545415f; expectedquat.
w = 1.308996f;
1715 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1716 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1717 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1718 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1719 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = 0.0f;
1720 U(
mat).m[3][3] = 48.0f;
1721 expectedquat.
x = 1.745743f; expectedquat.
y = 2.291288f; expectedquat.
z = -0.545545f; expectedquat.
w = 1.309307f;
1725 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1726 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1727 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1728 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1729 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = 0.01f;
1730 U(
mat).m[3][3] = 48.0f;
1731 expectedquat.
x = 18.408188f; expectedquat.
y = 5.970223f; expectedquat.
z = -2.985111f; expectedquat.
w = 0.502494f;
1735 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1736 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1737 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1738 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1739 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = 0.5f;
1740 U(
mat).m[3][3] = 48.0f;
1741 expectedquat.
x = 15.105186f; expectedquat.
y = 4.898980f; expectedquat.
z = -2.449490f; expectedquat.
w = 0.612372f;
1745 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1746 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1747 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1748 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1749 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = 0.70f;
1750 U(
mat).m[3][3] = 48.0f;
1751 expectedquat.
x = 14.188852f; expectedquat.
y = 4.601790f; expectedquat.
z = -2.300895f; expectedquat.
w = 0.651920f;
1755 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1756 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1757 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1758 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1759 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = 0.99f;
1760 U(
mat).m[3][3] = 48.0f;
1761 expectedquat.
x = 13.114303f; expectedquat.
y = 4.253287f; expectedquat.
z = -2.126644f; expectedquat.
w = 0.705337f;
1765 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1766 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1767 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1768 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1769 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = 2.0f;
1770 U(
mat).m[3][3] = 48.0f;
1771 expectedquat.
x = 10.680980f; expectedquat.
y = 3.464102f; expectedquat.
z = -1.732051f; expectedquat.
w = 0.866025f;
1776 expectedquat.
x = 0.303261f; expectedquat.
y = 0.262299f; expectedquat.
z = 0.410073f; expectedquat.
w = 0.819190f;
1781 expectedquat.
x = -0.2f; expectedquat.
y = 2.6f; expectedquat.
z = 1.3f; expectedquat.
w = 9.1f;
1784 expectedquat.
x = 334.0f; expectedquat.
y = -31.9f; expectedquat.
z = 6.1f; expectedquat.
w = 6.7f;
1787 expectedquat.
x = 0.239485f; expectedquat.
y = 0.346580f; expectedquat.
z = 0.453676f; expectedquat.
w = 0.560772f;
1792 expectedquat.
x = -156.296f; expectedquat.
y = 30.242f; expectedquat.
z = -2.5022f; expectedquat.
w = 7.3576f;
1797 r.x = 1.0f;
r.y = 2.0f;
r.z = 4.0f;
r.w = 10.0f;
1798 s.x = -3.0f;
s.y = 4.0f;
s.z = -5.0f;
s.w = 7.0;
1799 t.x = -1111.0f;
t.y = 111.0f;
t.z = -11.0f;
t.w = 1.0f;
1800 u.x = 91.0f;
u.y = - 82.0f;
u.z = 7.3f;
u.w = -6.4f;
1802 expectedquat.
x = 7.121285f; expectedquat.
y = 2.159964f; expectedquat.
z = -3.855094f; expectedquat.
w = 5.362844f;
1804 expectedquat.
x = -1113.492920f; expectedquat.
y = 82.679260f; expectedquat.
z = -6.696645f; expectedquat.
w = -4.090050f;
1806 expectedquat.
x = -1111.0f; expectedquat.
y = 111.0f; expectedquat.
z = -11.0f; expectedquat.
w = 1.0f;
1810 expectedquat.
x = -1113.492920f; expectedquat.
y = 82.679260f; expectedquat.
z = -6.696645f; expectedquat.
w = -4.090050f;
1815 r.x = 0.2f;
r.y = 0.3f;
r.z = 1.3f;
r.w = -0.6f;
1816 s.x = -3.0f;
s.y =-2.0f;
s.z = 4.0f;
s.w = 0.2f;
1817 t.x = 0.4f;
t.y = 8.3f;
t.z = -3.1f;
t.w = -2.7f;
1818 u.x = 1.1f;
u.y = -0.7f;
u.z = 9.2f;
u.w = 0.0f;
1820 expectedquat.
x = -4.139569f; expectedquat.
y = -2.469115f; expectedquat.
z = 2.364477f; expectedquat.
w = 0.465494f;
1822 expectedquat.
x = 2.342533f; expectedquat.
y = 2.365127f; expectedquat.
z = 8.628538f; expectedquat.
w = -0.898356f;
1824 expectedquat.
x = 1.1f; expectedquat.
y = -0.7f; expectedquat.
z = 9.2f; expectedquat.
w = 0.0f;
1827 expectedquat.
x = -3.754567f; expectedquat.
y = -0.586085f; expectedquat.
z = 3.815818f; expectedquat.
w = -0.198150f;
1829 expectedquat.
x = 0.140773f; expectedquat.
y = -8.737090f; expectedquat.
z = -0.516593f; expectedquat.
w = 3.053942f;
1831 expectedquat.
x = -0.4f; expectedquat.
y = -8.3f; expectedquat.
z = 3.1f; expectedquat.
w = 2.7f;
1833 r.x = -1.0f;
r.y = 0.0f;
r.z = 0.0f;
r.w = 0.0f;
1834 s.x = 1.0f;
s.y =0.0f;
s.z = 0.0f;
s.w = 0.0f;
1835 t.x = 1.0f;
t.y = 0.0f;
t.z = 0.0f;
t.w = 0.0f;
1836 u.x = -1.0f;
u.y = 0.0f;
u.z = 0.0f;
u.w = 0.0f;
1838 expectedquat.
x = 1.0f; expectedquat.
y = 0.0f; expectedquat.
z = 0.0f; expectedquat.
w = 0.0f;
1840 expectedquat.
x = 1.0f; expectedquat.
y = 0.0f; expectedquat.
z = 0.0f; expectedquat.
w = 0.0f;
1842 expectedquat.
x = 1.0f; expectedquat.
y = 0.0f; expectedquat.
z = 0.0f; expectedquat.
w = 0.0f;
1846 Nq.
x = 1.0f/22.0f; Nq.
y = 2.0f/22.0f; Nq.
z = 4.0f/22.0f; Nq.
w = 10.0f/22.0f;
1847 expectedvec.
x = 1.0f/22.0f; expectedvec.
y = 2.0f/22.0f; expectedvec.
z = 4.0f/22.0f;
1853 expectedvec.
x = 1.0f; expectedvec.
y = 2.0f; expectedvec.
z = 4.0f;
1857 expectedvec.
x = 0.0f; expectedvec.
y = 0.0f; expectedvec.
z = 0.0f;
1875 float coeff1, coeff2, got,
scale;
1879 nul.
x = 0.0f; nul.
y = 0.0f;
1880 u.x = 3.0f;
u.y = 4.0f;
1881 v.x = -7.0f;
v.y = 9.0f;
1882 w.x = 4.0f;
w.y = -3.0f;
1883 x.x = 2.0f;
x.y = -11.0f;
1886 1.0f, 2.0f, 3.0f, 4.0f,
1887 5.0f, 6.0f, 7.0f, 8.0f,
1888 9.0f, 10.0f, 11.0f, 12.0f,
1889 13.0f, 14.0f, 15.0f, 16.0f);
1891 coeff1 = 2.0f; coeff2 = 5.0f;
1895 expectedvec.
x = -4.0f; expectedvec.
y = 13.0f;
1896 D3DXVec2Add(&gotvec,&
u,&
v);
1899 funcpointer = D3DXVec2Add(&gotvec,
NULL,&
v);
1900 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1902 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1905 expectedvec.
x = -12.0f; expectedvec.
y = -21.0f;
1910 expectedvec.
x = 5820.25f; expectedvec.
y = -3654.5625f;
1915 got = D3DXVec2CCW(&
u, &
v);
1917 ok(
equal,
"Got unexpected ccw %.8e.\n", got);
1919 got = D3DXVec2CCW(
NULL, &
v);
1921 ok(
equal,
"Got unexpected ccw %.8e.\n", got);
1924 ok(
equal,
"Got unexpected ccw %.8e.\n", got);
1927 got = D3DXVec2Dot(&
u, &
v);
1929 ok(
equal,
"Got unexpected dot %.8e.\n", got);
1931 got = D3DXVec2Dot(
NULL, &
v);
1933 ok(
equal,
"Got unexpected dot %.8e.\n", got);
1936 ok(
equal,
"Got unexpected dot %.8e.\n", got);
1939 expectedvec.
x = 2604.625f; expectedvec.
y = -4533.0f;
1944 got = D3DXVec2Length(&
u);
1946 ok(
equal,
"Got unexpected length %.8e.\n", got);
1948 got = D3DXVec2Length(
NULL);
1950 ok(
equal,
"Got unexpected length %.8e.\n", got);
1953 got = D3DXVec2LengthSq(&
u);
1955 ok(
equal,
"Got unexpected length %.8e.\n", got);
1957 got = D3DXVec2LengthSq(
NULL);
1959 ok(
equal,
"Got unexpected length %.8e.\n", got);
1962 expectedvec.
x = 68.0f; expectedvec.
y = -28.5f;
1963 D3DXVec2Lerp(&gotvec, &
u, &
v,
scale);
1966 funcpointer = D3DXVec2Lerp(&gotvec,
NULL,&
v,
scale);
1967 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1969 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1972 expectedvec.
x = 3.0f; expectedvec.
y = 9.0f;
1973 D3DXVec2Maximize(&gotvec, &
u, &
v);
1976 funcpointer = D3DXVec2Maximize(&gotvec,
NULL,&
v);
1977 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1979 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1982 expectedvec.
x = -7.0f; expectedvec.
y = 4.0f;
1983 D3DXVec2Minimize(&gotvec,&
u,&
v);
1986 funcpointer = D3DXVec2Minimize(&gotvec,
NULL,&
v);
1987 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1989 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1992 expectedvec.
x = 0.6f; expectedvec.
y = 0.8f;
1996 expectedvec.
x = 0.0f; expectedvec.
y = 0.0f;
2001 expectedvec.
x = -19.5f; expectedvec.
y = -26.0f;
2002 D3DXVec2Scale(&gotvec,&
u,
scale);
2005 funcpointer = D3DXVec2Scale(&gotvec,
NULL,
scale);
2006 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2008 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2011 expectedvec.
x = 10.0f; expectedvec.
y = -5.0f;
2012 D3DXVec2Subtract(&gotvec, &
u, &
v);
2015 funcpointer = D3DXVec2Subtract(&gotvec,
NULL,&
v);
2016 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2018 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2021 expectedtrans.
x = 36.0f; expectedtrans.
y = 44.0f; expectedtrans.
z = 52.0f; expectedtrans.
w = 60.0f;
2024 gottrans.
x =
u.x; gottrans.
y =
u.y;
2029 expectedvec.
x = 0.6f; expectedvec.
y = 11.0f/15.0f;
2032 gotvec.
x =
u.x; gotvec.
y =
u.y;
2037 expectedvec.
x = 23.0f; expectedvec.
y = 30.0f;
2049 float coeff1, coeff2, got,
scale;
2052 nul.
x = 0.0f; nul.
y = 0.0f; nul.
z = 0.0f;
2053 u.x = 9.0f;
u.y = 6.0f;
u.z = 2.0f;
2054 v.x = 2.0f;
v.y = -3.0f;
v.z = -4.0;
2055 w.x = 3.0f;
w.y = -5.0f;
w.z = 7.0f;
2056 x.x = 4.0f;
x.y = 1.0f;
x.z = 11.0f;
2058 viewport.
Width = 800; viewport.
MinZ = 0.2f; viewport.
X = 10;
2059 viewport.
Height = 680; viewport.
MaxZ = 0.9f; viewport.
Y = 5;
2062 1.0f, 2.0f, 3.0f, 4.0f,
2063 5.0f, 6.0f, 7.0f, 8.0f,
2064 9.0f, 10.0f, 11.0f, 12.0f,
2065 13.0f, 14.0f, 15.0f, 16.0f);
2067 U(
view).m[0][1] = 5.0f;
U(
view).m[0][2] = 7.0f;
U(
view).m[0][3] = 8.0f;
2068 U(
view).m[1][0] = 11.0f;
U(
view).m[1][2] = 16.0f;
U(
view).m[1][3] = 33.0f;
2069 U(
view).m[2][0] = 19.0f;
U(
view).m[2][1] = -21.0f;
U(
view).m[2][3] = 43.0f;
2070 U(
view).m[3][0] = 2.0f;
U(
view).m[3][1] = 3.0f;
U(
view).m[3][2] = -4.0f;
2071 U(
view).m[0][0] = 10.0f;
U(
view).m[1][1] = 20.0f;
U(
view).m[2][2] = 30.0f;
2072 U(
view).m[3][3] = -40.0f;
2075 21.0f, 2.0f, 3.0f, 4.0f,
2076 5.0f, 23.0f, 7.0f, 8.0f,
2077 -8.0f, -7.0f, 25.0f, -5.0f,
2078 -4.0f, -3.0f, -2.0f, 27.0f);
2080 coeff1 = 2.0f; coeff2 = 5.0f;
2084 expectedvec.
x = 11.0f; expectedvec.
y = 3.0f; expectedvec.
z = -2.0f;
2085 D3DXVec3Add(&gotvec,&
u,&
v);
2088 funcpointer = D3DXVec3Add(&gotvec,
NULL,&
v);
2089 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2091 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2094 expectedvec.
x = -35.0f; expectedvec.
y = -67.0; expectedvec.
z = 15.0f;
2099 expectedvec.
x = 1458.0f; expectedvec.
y = 22.1875f; expectedvec.
z = 4141.375f;
2104 expectedvec.
x = -18.0f; expectedvec.
y = 40.0f; expectedvec.
z = -39.0f;
2105 D3DXVec3Cross(&gotvec,&
u,&
v);
2107 expectedvec.
x = -277.0f; expectedvec.
y = -150.0f; expectedvec.
z = -26.0f;
2108 D3DXVec3Cross(&gotvec,&gotvec,&
v);
2111 funcpointer = D3DXVec3Cross(&gotvec,
NULL,&
v);
2112 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2114 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2117 got = D3DXVec3Dot(&
u, &
v);
2119 ok(
equal,
"Got unexpected dot %.8e.\n", got);
2121 got = D3DXVec3Dot(
NULL, &
v);
2123 ok(
equal,
"Got unexpected dot %.8e.\n", got);
2126 ok(
equal,
"Got unexpected dot %.8e.\n", got);
2129 expectedvec.
x = -6045.75f; expectedvec.
y = -6650.0f; expectedvec.
z = 1358.875f;
2134 got = D3DXVec3Length(&
u);
2136 ok(
equal,
"Got unexpected length %.8e.\n", got);
2138 got = D3DXVec3Length(
NULL);
2140 ok(
equal,
"Got unexpected length %.8e.\n", got);
2143 got = D3DXVec3LengthSq(&
u);
2145 ok(
equal,
"Got unexpected length %.8e.\n", got);
2147 got = D3DXVec3LengthSq(
NULL);
2149 ok(
equal,
"Got unexpected length %.8e.\n", got);
2152 expectedvec.
x = 54.5f; expectedvec.
y = 64.5f; expectedvec.
z = 41.0f ;
2153 D3DXVec3Lerp(&gotvec,&
u,&
v,
scale);
2156 funcpointer = D3DXVec3Lerp(&gotvec,
NULL,&
v,
scale);
2157 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2159 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2162 expectedvec.
x = 9.0f; expectedvec.
y = 6.0f; expectedvec.
z = 2.0f;
2163 D3DXVec3Maximize(&gotvec,&
u,&
v);
2166 funcpointer = D3DXVec3Maximize(&gotvec,
NULL,&
v);
2167 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2169 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2172 expectedvec.
x = 2.0f; expectedvec.
y = -3.0f; expectedvec.
z = -4.0f;
2173 D3DXVec3Minimize(&gotvec,&
u,&
v);
2176 funcpointer = D3DXVec3Minimize(&gotvec,
NULL,&
v);
2177 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2179 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2182 expectedvec.
x = 9.0f/11.0f; expectedvec.
y = 6.0f/11.0f; expectedvec.
z = 2.0f/11.0f;
2186 expectedvec.
x = 0.0f; expectedvec.
y = 0.0f; expectedvec.
z = 0.0f;
2191 expectedvec.
x = -58.5f; expectedvec.
y = -39.0f; expectedvec.
z = -13.0f;
2192 D3DXVec3Scale(&gotvec,&
u,
scale);
2195 funcpointer = D3DXVec3Scale(&gotvec,
NULL,
scale);
2196 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2198 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2201 expectedvec.
x = 7.0f; expectedvec.
y = 9.0f; expectedvec.
z = 6.0f;
2202 D3DXVec3Subtract(&gotvec,&
u,&
v);
2205 funcpointer = D3DXVec3Subtract(&gotvec,
NULL,&
v);
2206 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2208 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2211 expectedtrans.
x = 70.0f; expectedtrans.
y = 88.0f; expectedtrans.
z = 106.0f; expectedtrans.
w = 124.0f;
2215 gottrans.
x =
u.x; gottrans.
y =
u.y; gottrans.
z =
u.z;
2220 expectedvec.
x = 70.0f/124.0f; expectedvec.
y = 88.0f/124.0f; expectedvec.
z = 106.0f/124.0f;
2225 expectedvec.
x = 57.0f; expectedvec.
y = 74.0f; expectedvec.
z = 91.0f;
2230 expectedvec.
x = 1135.721924f; expectedvec.
y = 147.086914f; expectedvec.
z = 0.153412f;
2247 expectedvec.
x = 4010.000000f; expectedvec.
y = -1695.000000f; expectedvec.
z = 1.600000f;
2251 expectedvec.
x = 1.814305f; expectedvec.
y = 0.582097f; expectedvec.
z = -0.066555f;
2256 expectedvec.
x = -2.913411f; expectedvec.
y = 1.593215f; expectedvec.
z = 0.380724f;
2273 expectedvec.
x = -1.002500f; expectedvec.
y = 0.997059f; expectedvec.
z = 2.571429f;
2277 expectedvec.
x = -11.018396f; expectedvec.
y = 3.218991f; expectedvec.
z = 1.380329f;
2287 float coeff1, coeff2, got,
scale;
2291 u.x = 1.0f;
u.y = 2.0f;
u.z = 4.0f;
u.w = 10.0;
2292 v.x = -3.0f;
v.y = 4.0f;
v.z = -5.0f;
v.w = 7.0;
2293 w.x = 4.0f;
w.y =6.0f;
w.z = -2.0f;
w.w = 1.0f;
2294 x.x = 6.0f;
x.y = -7.0f;
x.z =8.0f;
x.w = -9.0f;
2297 1.0f, 2.0f, 3.0f, 4.0f,
2298 5.0f, 6.0f, 7.0f, 8.0f,
2299 9.0f, 10.0f, 11.0f, 12.0f,
2300 13.0f, 14.0f, 15.0f, 16.0f);
2302 coeff1 = 2.0f; coeff2 = 5.0;
2306 expectedvec.
x = -2.0f; expectedvec.
y = 6.0f; expectedvec.
z = -1.0f; expectedvec.
w = 17.0f;
2307 D3DXVec4Add(&gotvec,&
u,&
v);
2310 funcpointer = D3DXVec4Add(&gotvec,
NULL,&
v);
2311 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2313 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2316 expectedvec.
x = 8.0f; expectedvec.
y = 26.0; expectedvec.
z = -44.0f; expectedvec.
w = -41.0f;
2321 expectedvec.
x = 2754.625f; expectedvec.
y = 2367.5625f; expectedvec.
z = 1060.1875f; expectedvec.
w = 131.3125f;
2326 expectedvec.
x = 390.0f; expectedvec.
y = -393.0f; expectedvec.
z = -316.0f; expectedvec.
w = 166.0f;
2331 got = D3DXVec4Dot(&
u, &
v);
2333 ok(
equal,
"Got unexpected dot %.8e.\n", got);
2335 got = D3DXVec4Dot(
NULL, &
v);
2337 ok(
equal,
"Got unexpected dot %.8e.\n", got);
2340 ok(
equal,
"Got unexpected dot %.8e.\n", got);
2343 expectedvec.
x = 1224.625f; expectedvec.
y = 3461.625f; expectedvec.
z = -4758.875f; expectedvec.
w = -5781.5f;
2348 got = D3DXVec4Length(&
u);
2350 ok(
equal,
"Got unexpected length %.8e.\n", got);
2352 got = D3DXVec4Length(
NULL);
2354 ok(
equal,
"Got unexpected length %.8e.\n", got);
2357 got = D3DXVec4LengthSq(&
u);
2359 ok(
equal,
"Got unexpected length %.8e.\n", got);
2361 got = D3DXVec4LengthSq(
NULL);
2363 ok(
equal,
"Got unexpected length %.8e.\n", got);
2366 expectedvec.
x = 27.0f; expectedvec.
y = -11.0f; expectedvec.
z = 62.5; expectedvec.
w = 29.5;
2367 D3DXVec4Lerp(&gotvec,&
u,&
v,
scale);
2370 funcpointer = D3DXVec4Lerp(&gotvec,
NULL,&
v,
scale);
2371 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2373 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2376 expectedvec.
x = 1.0f; expectedvec.
y = 4.0f; expectedvec.
z = 4.0f; expectedvec.
w = 10.0;
2377 D3DXVec4Maximize(&gotvec,&
u,&
v);
2380 funcpointer = D3DXVec4Maximize(&gotvec,
NULL,&
v);
2381 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2383 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2386 expectedvec.
x = -3.0f; expectedvec.
y = 2.0f; expectedvec.
z = -5.0f; expectedvec.
w = 7.0;
2387 D3DXVec4Minimize(&gotvec,&
u,&
v);
2390 funcpointer = D3DXVec4Minimize(&gotvec,
NULL,&
v);
2391 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2393 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2396 expectedvec.
x = 1.0f/11.0f; expectedvec.
y = 2.0f/11.0f; expectedvec.
z = 4.0f/11.0f; expectedvec.
w = 10.0f/11.0f;
2401 expectedvec.
x = -6.5f; expectedvec.
y = -13.0f; expectedvec.
z = -26.0f; expectedvec.
w = -65.0f;
2402 D3DXVec4Scale(&gotvec,&
u,
scale);
2405 funcpointer = D3DXVec4Scale(&gotvec,
NULL,
scale);
2406 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2408 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2411 expectedvec.
x = 4.0f; expectedvec.
y = -2.0f; expectedvec.
z = 9.0f; expectedvec.
w = 3.0f;
2412 D3DXVec4Subtract(&gotvec,&
u,&
v);
2415 funcpointer = D3DXVec4Subtract(&gotvec,
NULL,&
v);
2416 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2418 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2421 expectedtrans.
x = 177.0f; expectedtrans.
y = 194.0f; expectedtrans.
z = 211.0f; expectedtrans.
w = 228.0f;
2428 ID3DXMatrixStack *
stack;
2433 1.0f, 2.0f, 3.0f, 4.0f,
2434 5.0f, 6.0f, 7.0f, 8.0f,
2435 9.0f, 10.0f, 11.0f, 12.0f,
2436 13.0f, 14.0f, 15.0f, 16.0f
2440 17.0f, 18.0f, 19.0f, 20.0f,
2441 21.0f, 22.0f, 23.0f, 24.0f,
2442 25.0f, 26.0f, 27.0f, 28.0f,
2443 29.0f, 30.0f, 31.0f, 32.0f
2451 "The top of an empty matrix stack should be an identity matrix\n");
2500 ok(!refcount,
"Matrix stack has %u references left.\n", refcount);
2519 U(exp_mat).m[0][0] = 10.0f;
2520 U(exp_mat).m[1][0] = -17.320507f;
2521 U(exp_mat).m[2][0] = 0.0f;
2522 U(exp_mat).m[3][0] = -1.035898f;
2523 U(exp_mat).m[0][1] = 17.320507f;
2524 U(exp_mat).m[1][1] = 10.0f;
2525 U(exp_mat).m[2][1] = 0.0f;
2526 U(exp_mat).m[3][1] = 6.401924f;
2527 U(exp_mat).m[0][2] = 0.0f;
2528 U(exp_mat).m[1][2] = 0.0f;
2529 U(exp_mat).m[2][2] = 1.0f;
2530 U(exp_mat).m[3][2] = 0.0f;
2531 U(exp_mat).m[0][3] = 0.0f;
2532 U(exp_mat).m[1][3] = 0.0f;
2533 U(exp_mat).m[2][3] = 0.0f;
2534 U(exp_mat).m[3][3] = 1.0f;
2548 U(exp_mat).m[0][0] = 10.0f;
2549 U(exp_mat).m[1][0] = -17.320507f;
2550 U(exp_mat).m[2][0] = 0.0f;
2551 U(exp_mat).m[3][0] = 4.964102f;
2552 U(exp_mat).m[0][1] = 17.320507f;
2553 U(exp_mat).m[1][1] = 10.0f;
2554 U(exp_mat).m[2][1] = 0.0f;
2555 U(exp_mat).m[3][1] = -0.598076f;
2556 U(exp_mat).m[0][2] = 0.0f;
2557 U(exp_mat).m[1][2] = 0.0f;
2558 U(exp_mat).m[2][2] = 1.0f;
2559 U(exp_mat).m[3][2] = 0.0f;
2560 U(exp_mat).m[0][3] = 0.0f;
2561 U(exp_mat).m[1][3] = 0.0f;
2562 U(exp_mat).m[2][3] = 0.0f;
2563 U(exp_mat).m[3][3] = 1.0f;
2577 U(exp_mat).m[0][0] = 10.0f;
2578 U(exp_mat).m[1][0] = -17.320507f;
2579 U(exp_mat).m[2][0] = 0.0f;
2580 U(exp_mat).m[3][0] = -6.0f;
2581 U(exp_mat).m[0][1] = 17.320507f;
2582 U(exp_mat).m[1][1] = 10.0f;
2583 U(exp_mat).m[2][1] = 0.0f;
2584 U(exp_mat).m[3][1] = 7.0f;
2585 U(exp_mat).m[0][2] = 0.0f;
2586 U(exp_mat).m[1][2] = 0.0f;
2587 U(exp_mat).m[2][2] = 1.0f;
2588 U(exp_mat).m[3][2] = 0.0f;
2589 U(exp_mat).m[0][3] = 0.0f;
2590 U(exp_mat).m[1][3] = 0.0f;
2591 U(exp_mat).m[2][3] = 0.0f;
2592 U(exp_mat).m[3][3] = 1.0f;
2603 U(exp_mat).m[0][0] = 14.142133f;
2604 U(exp_mat).m[1][0] = -14.142133f;
2605 U(exp_mat).m[2][0] = 0.0f;
2606 U(exp_mat).m[3][0] = 0.0f;
2607 U(exp_mat).m[0][1] = 14.142133;
2608 U(exp_mat).m[1][1] = 14.142133f;
2609 U(exp_mat).m[2][1] = 0.0f;
2610 U(exp_mat).m[3][1] = 0.0f;
2611 U(exp_mat).m[0][2] = 0.0f;
2612 U(exp_mat).m[1][2] = 0.0f;
2613 U(exp_mat).m[2][2] = 1.0f;
2614 U(exp_mat).m[3][2] = 0.0f;
2615 U(exp_mat).m[0][3] = 0.0f;
2616 U(exp_mat).m[1][3] = 0.0f;
2617 U(exp_mat).m[2][3] = 0.0f;
2618 U(exp_mat).m[3][3] = 1.0f;
2628 D3DXVECTOR3 exp_scale, got_scale, exp_translation, got_translation;
2634 U(
pm).m[0][0] = -9.23879206e-01f;
2635 U(
pm).m[1][0] = -2.70598412e-01f;
2636 U(
pm).m[2][0] = 2.70598441e-01f;
2637 U(
pm).m[3][0] = -5.00000000e+00f;
2638 U(
pm).m[0][1] = 2.70598471e-01f;
2639 U(
pm).m[1][1] = 3.80604863e-02f;
2640 U(
pm).m[2][1] = 9.61939573e-01f;
2641 U(
pm).m[3][1] = 0.00000000e+00f;
2642 U(
pm).m[0][2] = -2.70598441e-01f;
2643 U(
pm).m[1][2] = 9.61939573e-01f;
2644 U(
pm).m[2][2] = 3.80603075e-02f;
2645 U(
pm).m[3][2] = 1.00000000e+01f;
2646 U(
pm).m[0][3] = 0.00000000e+00f;
2647 U(
pm).m[1][3] = 0.00000000e+00f;
2648 U(
pm).m[2][3] = 0.00000000e+00f;
2649 U(
pm).m[3][3] = 1.00000000e+00f;
2651 exp_scale.
x = 9.99999881e-01f;
2652 exp_scale.
y = 9.99999881e-01f;
2653 exp_scale.
z = 9.99999881e-01f;
2655 exp_rotation.
x = 2.14862776e-08f;
2656 exp_rotation.
y = 6.93519890e-01f;
2657 exp_rotation.
z = 6.93519890e-01f;
2658 exp_rotation.
w = 1.95090637e-01f;
2660 exp_translation.
x = -5.0f;
2661 exp_translation.
y = 0.0f;
2662 exp_translation.
z = 10.0f;
2667 expect_vec3(&exp_translation, &got_translation, 0);
2671 U(
pm).m[0][0] = -2.255813f;
2672 U(
pm).m[1][0] = 1.302324f;
2673 U(
pm).m[2][0] = 1.488373f;
2674 U(
pm).m[3][0] = 1.0f;
2675 U(
pm).m[0][1] = 1.302327f;
2676 U(
pm).m[1][1] = -0.7209296f;
2677 U(
pm).m[2][1] = 2.60465f;
2678 U(
pm).m[3][1] = 2.0f;
2679 U(
pm).m[0][2] = 1.488371f;
2680 U(
pm).m[1][2] = 2.604651f;
2681 U(
pm).m[2][2] = -0.02325551f;
2682 U(
pm).m[3][2] = 3.0f;
2683 U(
pm).m[0][3] = 0.0f;
2684 U(
pm).m[1][3] = 0.0f;
2685 U(
pm).m[2][3] = 0.0f;
2686 U(
pm).m[3][3] = 1.0f;
2688 exp_scale.
x = 2.99999928e+00f;
2689 exp_scale.
y = 2.99999905e+00f;
2690 exp_scale.
z = 2.99999952e+00f;
2692 exp_rotation.
x = 3.52180451e-01f;
2693 exp_rotation.
y = 6.16315663e-01f;
2694 exp_rotation.
z = 7.04360664e-01f;
2695 exp_rotation.
w = 3.38489343e-07f;
2697 exp_translation.
x = 1.0f;
2698 exp_translation.
y = 2.0f;
2699 exp_translation.
z = 3.0f;
2704 expect_vec3(&exp_translation, &got_translation, 0);
2708 U(
pm).m[0][0] = 2.427051f;
2709 U(
pm).m[1][0] = 0.0f;
2710 U(
pm).m[2][0] = 1.763355f;
2711 U(
pm).m[3][0] = 5.0f;
2712 U(
pm).m[0][1] = 0.0f;
2713 U(
pm).m[1][1] = 3.0f;
2714 U(
pm).m[2][1] = 0.0f;
2715 U(
pm).m[3][1] = 5.0f;
2716 U(
pm).m[0][2] = -1.763355f;
2717 U(
pm).m[1][2] = 0.0f;
2718 U(
pm).m[2][2] = 2.427051f;
2719 U(
pm).m[3][2] = 5.0f;
2720 U(
pm).m[0][3] = 0.0f;
2721 U(
pm).m[1][3] = 0.0f;
2722 U(
pm).m[2][3] = 0.0f;
2723 U(
pm).m[3][3] = 1.0f;
2725 exp_scale.
x = 2.99999976e+00f;
2726 exp_scale.
y = 3.00000000e+00f;
2727 exp_scale.
z = 2.99999976e+00f;
2729 exp_rotation.
x = 0.00000000e+00f;
2730 exp_rotation.
y = 3.09016883e-01f;
2731 exp_rotation.
z = 0.00000000e+00f;
2732 exp_rotation.
w = 9.51056540e-01f;
2734 exp_translation.
x = 5.0f;
2735 exp_translation.
y = 5.0f;
2736 exp_translation.
z = 5.0f;
2741 expect_vec3(&exp_translation, &got_translation, 0);
2745 U(
pm).m[0][0] = -9.23879206e-01f;
2746 U(
pm).m[1][0] = -2.70598412e-01f;
2747 U(
pm).m[2][0] = 2.70598441e-01f;
2748 U(
pm).m[3][0] = -5.00000000e+00f;
2749 U(
pm).m[0][1] = 2.70598471e-01f;
2750 U(
pm).m[1][1] = 3.80604863e-02f;
2751 U(
pm).m[2][1] = 9.61939573e-01f;
2752 U(
pm).m[3][1] = 0.00000000e+00f;
2753 U(
pm).m[0][2] = -2.70598441e-01f;
2754 U(
pm).m[1][2] = 9.61939573e-01f;
2755 U(
pm).m[2][2] = 3.80603075e-02f;
2756 U(
pm).m[3][2] = 1.00000000e+01f;
2757 U(
pm).m[0][3] = 0.00000000e+00f;
2758 U(
pm).m[1][3] = 0.00000000e+00f;
2759 U(
pm).m[2][3] = 0.00000000e+00f;
2760 U(
pm).m[3][3] = 1.00000000e+00f;
2762 exp_scale.
x = 9.99999881e-01f;
2763 exp_scale.
y = 9.99999881e-01f;
2764 exp_scale.
z = 9.99999881e-01f;
2766 exp_rotation.
x = 2.14862776e-08f;
2767 exp_rotation.
y = 6.93519890e-01f;
2768 exp_rotation.
z = 6.93519890e-01f;
2769 exp_rotation.
w = 1.95090637e-01f;
2771 exp_translation.
x = -5.0f;
2772 exp_translation.
y = 0.0f;
2773 exp_translation.
z = 10.0f;
2778 expect_vec3(&exp_translation, &got_translation, 0);
2782 U(
pm).m[0][0] = -9.23878908e-01f;
2783 U(
pm).m[1][0] = -5.41196704e-01f;
2784 U(
pm).m[2][0] = 8.11795175e-01f;
2785 U(
pm).m[3][0] = -5.00000000e+00f;
2786 U(
pm).m[0][1] = 2.70598322e-01f;
2787 U(
pm).m[1][1] = 7.61209577e-02f;
2788 U(
pm).m[2][1] = 2.88581824e+00f;
2789 U(
pm).m[3][1] = 0.00000000e+00f;
2790 U(
pm).m[0][2] = -2.70598352e-01f;
2791 U(
pm).m[1][2] = 1.92387879e+00f;
2792 U(
pm).m[2][2] = 1.14180908e-01f;
2793 U(
pm).m[3][2] = 1.00000000e+01f;
2794 U(
pm).m[0][3] = 0.00000000e+00f;
2795 U(
pm).m[1][3] = 0.00000000e+00f;
2796 U(
pm).m[2][3] = 0.00000000e+00f;
2797 U(
pm).m[3][3] = 1.00000000e+00f;
2799 exp_scale.
x = 9.99999583e-01f;
2800 exp_scale.
y = 1.99999940e+00f;
2801 exp_scale.
z = 2.99999928e+00f;
2803 exp_rotation.
x = 1.07431388e-08f;
2804 exp_rotation.
y = 6.93519890e-01f;
2805 exp_rotation.
z = 6.93519831e-01f;
2806 exp_rotation.
w = 1.95090622e-01f;
2808 exp_translation.
x = -5.0f;
2809 exp_translation.
y = 0.0f;
2810 exp_translation.
z = 10.0f;
2815 exp_rotation.
x = 0.0f;
2817 ok(
equal,
"Got unexpected quaternion {%.8e, %.8e, %.8e, %.8e}.\n",
2818 got_rotation.
x, got_rotation.
y, got_rotation.
z, got_rotation.
w);
2819 expect_vec3(&exp_translation, &got_translation, 0);
2823 U(
pm).m[0][0] = 0.7156004f;
2824 U(
pm).m[1][0] = -0.5098283f;
2825 U(
pm).m[2][0] = -0.4774843f;
2826 U(
pm).m[3][0] = -5.0f;
2827 U(
pm).m[0][1] = -0.6612288f;
2828 U(
pm).m[1][1] = -0.7147621f;
2829 U(
pm).m[2][1] = -0.2277977f;
2830 U(
pm).m[3][1] = 0.0f;
2831 U(
pm).m[0][2] = -0.2251499f;
2832 U(
pm).m[1][2] = 0.4787385f;
2833 U(
pm).m[2][2] = -0.8485972f;
2834 U(
pm).m[3][2] = 10.0f;
2835 U(
pm).m[0][3] = 0.0f;
2836 U(
pm).m[1][3] = 0.0f;
2837 U(
pm).m[2][3] = 0.0f;
2838 U(
pm).m[3][3] = 1.0f;
2840 exp_scale.
x = 9.99999940e-01f;
2841 exp_scale.
y = 1.00000012e+00f;
2842 exp_scale.
z = 1.00000012e+00f;
2844 exp_rotation.
x = 9.05394852e-01f;
2845 exp_rotation.
y = -3.23355347e-01f;
2846 exp_rotation.
z = -1.94013178e-01f;
2847 exp_rotation.
w = 1.95090592e-01f;
2849 exp_translation.
x = -5.0f;
2850 exp_translation.
y = 0.0f;
2851 exp_translation.
z = 10.0f;
2856 expect_vec3(&exp_translation, &got_translation, 0);
2860 U(
pm).m[0][0] = 0.06554436f;
2861 U(
pm).m[1][0] = -0.6873012f;
2862 U(
pm).m[2][0] = 0.7234092f;
2863 U(
pm).m[3][0] = -5.0f;
2864 U(
pm).m[0][1] = -0.9617381f;
2865 U(
pm).m[1][1] = -0.2367795f;
2866 U(
pm).m[2][1] = -0.1378230f;
2867 U(
pm).m[3][1] = 0.0f;
2868 U(
pm).m[0][2] = 0.2660144f;
2869 U(
pm).m[1][2] = -0.6866967f;
2870 U(
pm).m[2][2] = -0.6765233f;
2871 U(
pm).m[3][2] = 10.0f;
2872 U(
pm).m[0][3] = 0.0f;
2873 U(
pm).m[1][3] = 0.0f;
2874 U(
pm).m[2][3] = 0.0f;
2875 U(
pm).m[3][3] = 1.0f;
2877 exp_scale.
x = 9.99999940e-01f;
2878 exp_scale.
y = 9.99999940e-01f;
2879 exp_scale.
z = 9.99999881e-01f;
2881 exp_rotation.
x = 7.03357518e-01f;
2882 exp_rotation.
y = -5.86131275e-01f;
2883 exp_rotation.
z = 3.51678789e-01f;
2884 exp_rotation.
w = -1.95090577e-01f;
2886 exp_translation.
x = -5.0f;
2887 exp_translation.
y = 0.0f;
2888 exp_translation.
z = 10.0f;
2893 expect_vec3(&exp_translation, &got_translation, 0);
2897 U(
pm).m[0][0] = 7.12104797e+00f;
2898 U(
pm).m[1][0] = -5.88348627e+00f;
2899 U(
pm).m[2][0] = 1.18184204e+01f;
2900 U(
pm).m[3][0] = -5.00000000e+00f;
2901 U(
pm).m[0][1] = 5.88348627e+00f;
2902 U(
pm).m[1][1] = -1.06065865e+01f;
2903 U(
pm).m[2][1] = -8.82523251e+00f;
2904 U(
pm).m[3][1] = 0.00000000e+00f;
2905 U(
pm).m[0][2] = 1.18184204e+01f;
2906 U(
pm).m[1][2] = 8.82523155e+00f;
2907 U(
pm).m[2][2] = -2.72764111e+00f;
2908 U(
pm).m[3][2] = 2.00000000e+00f;
2909 U(
pm).m[0][3] = 0.00000000e+00f;
2910 U(
pm).m[1][3] = 0.00000000e+00f;
2911 U(
pm).m[2][3] = 0.00000000e+00f;
2912 U(
pm).m[3][3] = 1.00000000e+00f;
2914 exp_scale.
x = 1.49999933e+01f;
2915 exp_scale.
y = 1.49999933e+01f;
2916 exp_scale.
z = 1.49999943e+01f;
2918 exp_rotation.
x = 7.68714130e-01f;
2919 exp_rotation.
y = 0.00000000e+00f;
2920 exp_rotation.
z = 5.12475967e-01f;
2921 exp_rotation.
w = 3.82683903e-01f;
2923 exp_translation.
x = -5.0f;
2924 exp_translation.
y = 0.0f;
2925 exp_translation.
z = 2.0f;
2930 expect_vec3(&exp_translation, &got_translation, 0);
2934 U(
pm).m[0][0] = 0.0f;
2935 U(
pm).m[1][0] = 4.0f;
2936 U(
pm).m[2][0] = 5.0f;
2937 U(
pm).m[3][0] = -5.0f;
2938 U(
pm).m[0][1] = 0.0f;
2939 U(
pm).m[1][1] = -10.60660f;
2940 U(
pm).m[2][1] = -8.825232f;
2941 U(
pm).m[3][1] = 6.0f;
2942 U(
pm).m[0][2] = 0.0f;
2943 U(
pm).m[1][2] = 8.8252320f;
2944 U(
pm).m[2][2] = 2.727645;
2945 U(
pm).m[3][2] = 3.0f;
2946 U(
pm).m[0][3] = 0.0f;
2947 U(
pm).m[1][3] = 0.0f;
2948 U(
pm).m[2][3] = 0.0f;
2949 U(
pm).m[3][3] = 1.0f;
2961 rot_center.
x = 3.0f;
2962 rot_center.
y = 4.0f;
2967 sca_center.
x = 9.0f;
2968 sca_center.
y = -5.0f;
2977 U(exp_mat).m[0][0] = -4.245192f;
2978 U(exp_mat).m[1][0] = -0.147116f;
2979 U(exp_mat).m[2][0] = 0.0f;
2980 U(exp_mat).m[3][0] = 45.265373f;
2981 U(exp_mat).m[0][1] = 7.647113f;
2982 U(exp_mat).m[1][1] = 8.745192f;
2983 U(exp_mat).m[2][1] = 0.0f;
2984 U(exp_mat).m[3][1] = -13.401899f;
2985 U(exp_mat).m[0][2] = 0.0f;
2986 U(exp_mat).m[1][2] = 0.0f;
2987 U(exp_mat).m[2][2] = 1.0f;
2988 U(exp_mat).m[3][2] = 0.0f;
2989 U(exp_mat).m[0][3] = 0.0f;
2990 U(exp_mat).m[1][3] = 0.0f;
2991 U(exp_mat).m[2][3] = 0.0f;
2992 U(exp_mat).m[3][3] = 1.0f;
2999 sca_center.
x = 9.0f;
3000 sca_center.
y = -5.0f;
3009 U(exp_mat).m[0][0] = 0.50f;
3010 U(exp_mat).m[1][0] = -0.866025f;
3011 U(exp_mat).m[2][0] = 0.0f;
3012 U(exp_mat).m[3][0] = -6.0f;
3013 U(exp_mat).m[0][1] = 0.866025f;
3014 U(exp_mat).m[1][1] = 0.50f;
3015 U(exp_mat).m[2][1] = 0.0f;
3016 U(exp_mat).m[3][1] = 7.0f;
3017 U(exp_mat).m[0][2] = 0.0f;
3018 U(exp_mat).m[1][2] = 0.0f;
3019 U(exp_mat).m[2][2] = 1.0f;
3020 U(exp_mat).m[3][2] = 0.0f;
3021 U(exp_mat).m[0][3] = 0.0f;
3022 U(exp_mat).m[1][3] = 0.0f;
3023 U(exp_mat).m[2][3] = 0.0f;
3024 U(exp_mat).m[3][3] = 1.0f;
3031 U(exp_mat).m[0][0] = 0.50f;
3032 U(exp_mat).m[1][0] = -0.866025f;
3033 U(exp_mat).m[2][0] = 0.0f;
3034 U(exp_mat).m[3][0] = 0.0f;
3035 U(exp_mat).m[0][1] = 0.866025f;
3036 U(exp_mat).m[1][1] = 0.50f;
3037 U(exp_mat).m[2][1] = 0.0f;
3038 U(exp_mat).m[3][1] = 0.0f;
3039 U(exp_mat).m[0][2] = 0.0f;
3040 U(exp_mat).m[1][2] = 0.0f;
3041 U(exp_mat).m[2][2] = 1.0f;
3042 U(exp_mat).m[3][2] = 0.0f;
3043 U(exp_mat).m[0][3] = 0.0f;
3044 U(exp_mat).m[1][3] = 0.0f;
3045 U(exp_mat).m[2][3] = 0.0f;
3046 U(exp_mat).m[3][3] = 1.0f;
3054 D3DXPLANE inp_plane[5], out_plane[7], exp_plane[7];
3060 viewport.
Width = 800; viewport.
MinZ = 0.2f; viewport.
X = 10;
3061 viewport.
Height = 680; viewport.
MaxZ = 0.9f; viewport.
Y = 5;
3063 memset(out_vec, 0,
sizeof(out_vec));
3064 memset(exp_vec, 0,
sizeof(exp_vec));
3065 memset(out_plane, 0,
sizeof(out_plane));
3066 memset(exp_plane, 0,
sizeof(exp_plane));
3070 inp_plane[
i].
a = inp_plane[
i].
c = inp_vec[
i].
x = inp_vec[
i].
z =
i;
3075 1.0f, 2.0f, 3.0f, 4.0f,
3076 5.0f, 6.0f, 7.0f, 8.0f,
3077 9.0f, 10.0f, 11.0f, 12.0f,
3078 13.0f, 14.0f, 15.0f, 16.0f);
3082 U(
view).m[0][1] = 5.0f;
U(
view).m[0][2] = 7.0f;
U(
view).m[0][3] = 8.0f;
3083 U(
view).m[1][0] = 11.0f;
U(
view).m[1][2] = 16.0f;
U(
view).m[1][3] = 33.0f;
3084 U(
view).m[2][0] = 19.0f;
U(
view).m[2][1] = -21.0f;
U(
view).m[2][3] = 43.0f;
3085 U(
view).m[3][0] = 2.0f;
U(
view).m[3][1] = 3.0f;
U(
view).m[3][2] = -4.0f;
3086 U(
view).m[0][0] = 10.0f;
U(
view).m[1][1] = 20.0f;
U(
view).m[2][2] = 30.0f;
3087 U(
view).m[3][3] = -40.0f;
3090 21.0f, 2.0f, 3.0f, 4.0f,
3091 5.0f, 23.0f, 7.0f, 8.0f,
3092 -8.0f, -7.0f, 25.0f, -5.0f,
3093 -4.0f, -3.0f, -2.0f, 27.0f);
3096 exp_vec[1].
x = 6.78571403e-01f; exp_vec[1].
y = 7.85714269e-01f;
3097 exp_vec[2].
x = 6.53846204e-01f; exp_vec[2].
y = 7.69230783e-01f;
3098 exp_vec[3].
x = 6.25000000e-01f; exp_vec[3].
y = 7.50000000e-01f;
3099 exp_vec[4].
x = 5.90909123e-01f; exp_vec[4].
y = 7.27272749e-01f;
3100 exp_vec[5].
x = 5.49999952e-01f; exp_vec[5].
y = 6.99999928e-01f;
3106 exp_vec[1].
x = 25.0f; exp_vec[1].
y = 30.0f;
3107 exp_vec[2].
x = 21.0f; exp_vec[2].
y = 26.0f;
3108 exp_vec[3].
x = 17.0f; exp_vec[3].
y = 22.0f;
3109 exp_vec[4].
x = 13.0f; exp_vec[4].
y = 18.0f;
3110 exp_vec[5].
x = 9.0f; exp_vec[5].
y = 14.0f;
3116 exp_vec[1].
x = 6.78571403e-01f; exp_vec[1].
y = 7.85714269e-01f; exp_vec[1].
z = 8.92857075e-01f;
3117 exp_vec[2].
x = 6.71874940e-01f; exp_vec[2].
y = 7.81249940e-01f; exp_vec[2].
z = 8.90624940e-01f;
3118 exp_vec[3].
x = 6.66666627e-01f; exp_vec[3].
y = 7.77777731e-01f; exp_vec[3].
z = 8.88888836e-01f;
3119 exp_vec[4].
x = 6.62499964e-01f; exp_vec[4].
y = 7.74999976e-01f; exp_vec[4].
z = 8.87499928e-01f;
3120 exp_vec[5].
x = 6.59090877e-01f; exp_vec[5].
y = 7.72727251e-01f; exp_vec[5].
z = 8.86363566e-01f;
3126 exp_vec[1].
x = 25.0f; exp_vec[1].
y = 30.0f; exp_vec[1].
z = 35.0f;
3127 exp_vec[2].
x = 30.0f; exp_vec[2].
y = 36.0f; exp_vec[2].
z = 42.0f;
3128 exp_vec[3].
x = 35.0f; exp_vec[3].
y = 42.0f; exp_vec[3].
z = 49.0f;
3129 exp_vec[4].
x = 40.0f; exp_vec[4].
y = 48.0f; exp_vec[4].
z = 56.0f;
3130 exp_vec[5].
x = 45.0f; exp_vec[5].
y = 54.0f; exp_vec[5].
z = 63.0f;
3136 exp_vec[1].
x = 1.08955420e+03f; exp_vec[1].
y = -2.26590622e+02f; exp_vec[1].
z = 2.15272754e-01f;
3137 exp_vec[2].
x = 1.06890344e+03f; exp_vec[2].
y = 1.03085144e+02f; exp_vec[2].
z = 1.83049560e-01f;
3138 exp_vec[3].
x = 1.05177905e+03f; exp_vec[3].
y = 3.76462280e+02f; exp_vec[3].
z = 1.56329080e-01f;
3139 exp_vec[4].
x = 1.03734888e+03f; exp_vec[4].
y = 6.06827393e+02f; exp_vec[4].
z = 1.33812696e-01f;
3140 exp_vec[5].
x = 1.02502356e+03f; exp_vec[5].
y = 8.03591248e+02f; exp_vec[5].
z = 1.14580572e-01f;
3142 sizeof(*inp_vec), &viewport, &projection, &
view, &world,
ARRAY_SIZE(inp_vec));
3146 exp_vec[1].
x = -6.12403107e+00f; exp_vec[1].
y = 3.22536016e+00f; exp_vec[1].
z = 6.20571136e-01f;
3147 exp_vec[2].
x = -3.80710936e+00f; exp_vec[2].
y = 2.04657936e+00f; exp_vec[2].
z = 4.46894377e-01f;
3148 exp_vec[3].
x = -2.92283988e+00f; exp_vec[3].
y = 1.59668946e+00f; exp_vec[3].
z = 3.80609393e-01f;
3149 exp_vec[4].
x = -2.45622563e+00f; exp_vec[4].
y = 1.35928988e+00f; exp_vec[4].
z = 3.45631927e-01f;
3150 exp_vec[5].
x = -2.16789746e+00f; exp_vec[5].
y = 1.21259713e+00f; exp_vec[5].
z = 3.24018806e-01f;
3152 sizeof(*inp_vec), &viewport, &projection, &
view, &world,
ARRAY_SIZE(inp_vec));
3156 exp_vec[1].
x = 38.0f; exp_vec[1].
y = 44.0f; exp_vec[1].
z = 50.0f; exp_vec[1].
w = 56.0f;
3157 exp_vec[2].
x = 34.0f; exp_vec[2].
y = 40.0f; exp_vec[2].
z = 46.0f; exp_vec[2].
w = 52.0f;
3158 exp_vec[3].
x = 30.0f; exp_vec[3].
y = 36.0f; exp_vec[3].
z = 42.0f; exp_vec[3].
w = 48.0f;
3159 exp_vec[4].
x = 26.0f; exp_vec[4].
y = 32.0f; exp_vec[4].
z = 38.0f; exp_vec[4].
w = 44.0f;
3160 exp_vec[5].
x = 22.0f; exp_vec[5].
y = 28.0f; exp_vec[5].
z = 34.0f; exp_vec[5].
w = 40.0f;
3166 exp_vec[1].
x = 38.0f; exp_vec[1].
y = 44.0f; exp_vec[1].
z = 50.0f; exp_vec[1].
w = 56.0f;
3167 exp_vec[2].
x = 43.0f; exp_vec[2].
y = 50.0f; exp_vec[2].
z = 57.0f; exp_vec[2].
w = 64.0f;
3168 exp_vec[3].
x = 48.0f; exp_vec[3].
y = 56.0f; exp_vec[3].
z = 64.0f; exp_vec[3].
w = 72.0f;
3169 exp_vec[4].
x = 53.0f; exp_vec[4].
y = 62.0f; exp_vec[4].
z = 71.0f; exp_vec[4].
w = 80.0f;
3170 exp_vec[5].
x = 58.0f; exp_vec[5].
y = 68.0f; exp_vec[5].
z = 78.0f; exp_vec[5].
w = 88.0f;
3176 exp_vec[1].
x = 90.0f; exp_vec[1].
y = 100.0f; exp_vec[1].
z = 110.0f; exp_vec[1].
w = 120.0f;
3177 exp_vec[2].
x = 82.0f; exp_vec[2].
y = 92.0f; exp_vec[2].
z = 102.0f; exp_vec[2].
w = 112.0f;
3178 exp_vec[3].
x = 74.0f; exp_vec[3].
y = 84.0f; exp_vec[3].
z = 94.0f; exp_vec[3].
w = 104.0f;
3179 exp_vec[4].
x = 66.0f; exp_vec[4].
y = 76.0f; exp_vec[4].
z = 86.0f; exp_vec[4].
w = 96.0f;
3180 exp_vec[5].
x = 58.0f; exp_vec[5].
y = 68.0f; exp_vec[5].
z = 78.0f; exp_vec[5].
w = 88.0f;
3185 exp_plane[1].
a = 90.0f; exp_plane[1].
b = 100.0f; exp_plane[1].
c = 110.0f; exp_plane[1].
d = 120.0f;
3186 exp_plane[2].
a = 82.0f; exp_plane[2].
b = 92.0f; exp_plane[2].
c = 102.0f; exp_plane[2].
d = 112.0f;
3187 exp_plane[3].
a = 74.0f; exp_plane[3].
b = 84.0f; exp_plane[3].
c = 94.0f; exp_plane[3].
d = 104.0f;
3188 exp_plane[4].
a = 66.0f; exp_plane[4].
b = 76.0f; exp_plane[4].
c = 86.0f; exp_plane[4].
d = 96.0f;
3189 exp_plane[5].
a = 58.0f; exp_plane[5].
b = 68.0f; exp_plane[5].
c = 78.0f; exp_plane[5].
d = 88.0f;
3195 ok(
equal,
"Got unexpected plane {%.8e, %.8e, %.8e, %.8e} at index %u, expected {%.8e, %.8e, %.8e, %.8e}.\n",
3196 out_plane[
i].
a, out_plane[
i].
b, out_plane[
i].
c, out_plane[
i].
d,
i,
3197 exp_plane[
i].
a, exp_plane[
i].
b, exp_plane[
i].
c, exp_plane[
i].
d);
3222 WORD half_ver1, half_ver2;
3225 union convert single_out_ver1, single_out_ver2;
3229 { { 0x479c4000 }, 0x7c00, 0x7ce2, { 0x47800000 }, { 0x479c4000 } },
3230 { { 0x477fdf00 }, 0x7bff, 0x7bff, { 0x477fe000 }, { 0x477fe000 } },
3231 { { 0x477fe000 }, 0x7bff, 0x7bff, { 0x477fe000 }, { 0x477fe000 } },
3232 { { 0x477ff000 }, 0x7bff, 0x7c00, { 0x477fe000 }, { 0x47800000 } },
3233 { { 0x477ff100 }, 0x7c00, 0x7c00, { 0x47800000 }, { 0x47800000 } },
3235 { { 0x477ffe00 }, 0x7c00, 0x7c00, { 0x47800000 }, { 0x47800000 } },
3236 { { 0x477fff00 }, 0x7c00, 0x7c00, { 0x47800000 }, { 0x47800000 } },
3237 { { 0x47800000 }, 0x7c00, 0x7c00, { 0x47800000 }, { 0x47800000 } },
3238 { { 0xc79c4000 }, 0xfc00, 0xfce2, { 0xc7800000 }, { 0xc79c4000 } },
3239 { { 0xc77fdf00 }, 0xfbff, 0xfbff, { 0xc77fe000 }, { 0xc77fe000 } },
3241 { { 0xc77fe000 }, 0xfbff, 0xfbff, { 0xc77fe000 }, { 0xc77fe000 } },
3242 { { 0xc77ff000 }, 0xfbff, 0xfc00, { 0xc77fe000 }, { 0xc7800000 } },
3243 { { 0xc77ff100 }, 0xfc00, 0xfc00, { 0xc7800000 }, { 0xc7800000 } },