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.239990
f, -576.719971
f, -263.440002
f, 0.0
f,
361 519.760010
f, -352.440002
f, -277.679993
f, 0.0
f,
362 363.119995
f, -121.040001
f, -117.479996
f, 0.0
f,
363 -1239.0
f, 667.0
f, 567.0
f, 1.0
f);
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.56
f, 0.0
f, 0.0
f, 0.0
f,
382 0.0
f, 3.56
f, 0.0
f, 0.0
f,
383 0.0
f, 0.0
f, 3.56
f, 0.0
f,
384 1.0
f, -3.0
f, 7.0
f, 1.0
f);
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.0
f/73944.0
f, -10165.0
f/147888.0
f, -2729.0
f/147888.0
f, -1631.0
f/49296.0
f,
406 -565.0
f/36972.0
f, 2723.0
f/73944.0
f, -1073.0
f/73944.0
f, 289.0
f/24648.0
f,
407 -389.0
f/2054.0
f, 337.0
f/4108.0
f, 181.0
f/4108.0
f, 317.0
f/4108.0
f,
408 163.0
f/5688.0
f, -101.0
f/11376.0
f, -73.0
f/11376.0
f, -127.0
f/3792.0
f);
412 ok(
equal,
"Got unexpected determinant %.8e.\n", determinant);
414 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
418 memset(&mat3, 0,
sizeof(mat3));
419 got = D3DXMatrixIsIdentity(&mat3);
421 D3DXMatrixIdentity(&mat3);
423 got = D3DXMatrixIsIdentity(&mat3);
425 U(mat3).m[0][0] = 0.000009f;
427 got = D3DXMatrixIsIdentity(&mat3);
431 got = D3DXMatrixIsIdentity(
NULL);
436 -0.82246518
f, -0.40948939
f, -0.39480308
f, 0.0
f,
437 -0.55585691
f, 0.43128574
f, 0.71064550
f, 0.0
f,
438 -0.12072885
f, 0.80393475
f, -0.58233452
f, 0.0
f,
439 4.4946337
f, 0.80971903
f, 10.060076
f, 1.0
f);
445 0.82246518
f, -0.40948939
f, 0.39480308
f, 0.0
f,
446 0.55585691
f, 0.43128574
f, -0.71064550
f, 0.0
f,
447 0.12072885
f, 0.80393475
f, 0.58233452
f, 0.0
f,
448 -4.4946337
f, 0.80971903
f, -10.060076
f, 1.0
f);
454 73.0
f, 193.0
f, -197.0
f, -77.0
f,
455 231.0
f, 551.0
f, -489.0
f, -169.0
f,
456 239.0
f, 523.0
f, -400.0
f, -116.0
f,
457 -164.0
f, -320.0
f, 187.0
f, 31.0
f);
463 73.0
f, 231.0
f, 239.0
f, -164.0
f,
464 193.0
f, 551.0
f, 523.0
f, -320.0
f,
465 -197.0
f, -489.0
f, -400.0
f, 187.0
f,
466 -77.0
f, -169.0
f, -116.0
f, 31.0
f);
472 0.8
f, 0.0
f, 0.0
f, 0.0
f,
473 0.0
f, 0.27027027
f, 0.0
f, 0.0
f,
474 0.0
f, 0.0
f, -0.15151515
f, 0.0
f,
475 0.0
f, 0.0
f, -0.48484848
f, 1.0
f);
481 3.6363636
f, 0.0
f, 0.0
f, 0.0
f,
482 0.0
f, 0.18018018
f, 0.0
f, 0.0
f,
483 0.0
f, 0.0
f, -0.045662100
f, 0.0
f,
484 -1.7272727
f, -0.56756757
f, 0.42465753
f, 1.0
f);
490 3.6363636
f, 0.0
f, 0.0
f, 0.0
f,
491 0.0
f, 0.18018018
f, 0.0
f, 0.0
f,
492 0.0
f, 0.0
f, 0.045662100
f, 0.0
f,
493 -1.7272727
f, -0.56756757
f, 0.42465753
f, 1.0
f);
499 0.8
f, 0.0
f, 0.0
f, 0.0
f,
500 0.0
f, 0.27027027
f, 0.0
f, 0.0
f,
501 0.0
f, 0.0
f, 0.15151515
f, 0.0
f,
502 0.0
f, 0.0
f, -0.48484848
f, 1.0
f);
508 13.288858
f, 0.0
f, 0.0
f, 0.0
f,
509 0.0
f, 9.9666444
f, 0.0
f, 0.0
f,
510 0.0
f, 0.0
f, 0.78378378
f, 1.0
f,
511 0.0
f, 0.0
f, 1.8810811
f, 0.0
f);
517 13.288858
f, 0.0
f, 0.0
f, 0.0
f,
518 0.0
f, 9.9666444
f, 0.0
f, 0.0
f,
519 0.0
f, 0.0
f, -0.78378378
f, -1.0
f,
520 0.0
f, 0.0
f, 1.8810811
f, 0.0
f);
526 -24.0
f, 0.0
f, 0.0
f, 0.0
f,
527 0.0
f, -6.4
f, 0.0
f, 0.0
f,
528 0.0
f, 0.0
f, 0.78378378
f, 1.0
f,
529 0.0
f, 0.0
f, 1.8810811
f, 0.0
f);
535 11.636364
f, 0.0
f, 0.0
f, 0.0
f,
536 0.0
f, 0.57657658
f, 0.0
f, 0.0
f,
537 -1.7272727
f, -0.56756757
f, 0.84079602
f, 1.0
f,
538 0.0
f, 0.0
f, -2.6905473
f, 0.0
f);
544 11.636364
f, 0.0
f, 0.0
f, 0.0
f,
545 0.0
f, 0.57657658
f, 0.0
f, 0.0
f,
546 1.7272727
f, 0.56756757
f, -0.84079602
f, -1.0
f,
547 0.0
f, 0.0
f, -2.6905473
f, 0.0
f);
553 -24.0
f, -0.0
f, 0.0
f, 0.0
f,
554 0.0
f, -6.4
f, 0.0
f, 0.0
f,
555 0.0
f, 0.0
f, -0.78378378
f, -1.0
f,
556 0.0
f, 0.0
f, 1.8810811
f, 0.0
f);
562 0.30769235
f, -0.23076922
f, 0.92307687
f, 0.0
f,
563 -0.23076922, 0.92307693
f, 0.30769232
f, 0.0
f,
564 0.92307687
f, 0.30769232
f, -0.23076922
f, 0.0
f,
565 1.6153846
f, 0.53846157
f, -2.1538463
f, 1.0
f);
571 0.50847453
f, 0.76380461
f, 0.39756277
f, 0.0
f,
572 -0.81465209
f, 0.57627118
f, -0.065219201
f, 0.0
f,
573 -0.27891868
f, -0.29071301
f, 0.91525424
f, 0.0
f,
574 0.0
f, 0.0
f, 0.0
f, 1.0
f);
580 -129.0
f, -162.0
f, -74.0
f, 0.0
f,
581 146.0
f, -99.0
f, -78.0
f, 0.0
f,
582 102.0
f, -34.0
f, -33.0
f, 0.0
f,
583 0.0
f, 0.0
f, 0.0
f, 1.0
f);
589 1.0
f, 0.0
f, 0.0
f, 0.0
f,
592 0.0
f, 0.0
f, 0.0
f, 1.0
f);
599 0.0
f, 1.0
f, 0.0
f, 0.0
f,
601 0.0
f, 0.0
f, 0.0
f, 1.0
f);
607 0.88877726
f, 0.091874748
f, -0.44903678
f, 0.0
f,
608 0.35171318
f, 0.49148652
f, 0.79670501
f, 0.0
f,
609 0.29389259
f, -0.86602545
f, 0.40450847
f, 0.0
f,
610 0.0
f, 0.0
f, 0.0
f, 1.0
f);
618 0.0
f, 0.0
f, 1.0
f, 0.0
f,
619 0.0
f, 0.0
f, 0.0
f, 1.0
f);
625 0.69
f, 0.0
f, 0.0
f, 0.0
f,
626 0.0
f, 0.53
f, 0.0
f, 0.0
f,
627 0.0
f, 0.0
f, 4.11
f, 0.0
f,
628 0.0
f, 0.0
f, 0.0
f, 1.0
f);
634 12.786773
f, 5.0009613
f, 4.3537784
f, 3.7065949
f,
635 1.8827150
f, 8.8056154
f, 1.4512594
f, 1.2355317
f,
636 -7.5308599
f, -6.6679487
f, 1.3335901
f, -4.9421268
f,
637 -13.179006
f, -11.668910
f, -10.158816
f, -1.5100943
f);
643 1.0
f, 0.0
f, 0.0
f, 0.0
f,
644 0.0
f, 1.0
f, 0.0
f, 0.0
f,
645 0.0
f, 0.0
f, 1.0
f, 0.0
f,
646 0.0
f, 0.0
f, 0.0
f, 1.0
f);
651 1.0
f, 0.0
f, 0.0
f, 0.0
f,
652 0.0
f, 1.0
f, 0.0
f, 0.0
f,
653 0.0
f, 0.0
f, 1.0
f, 0.0
f,
654 9.7
f, -8.6
f, 1.3
f, 1.0
f);
659 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
660 0.9504
f, -0.8836
f, 0.9244
f, 0.0
f,
661 1.0212
f, 0.1936
f, -1.3588
f, 0.0
f,
662 0.0
f, 0.0
f, 0.0
f, 1.0
f);
667 1.0
f, 0.0
f, 0.0
f, 0.0
f,
668 0.0
f, 1.0
f, 0.0
f, 0.0
f,
669 0.0
f, 0.0
f, 1.0
f, 0.0
f,
670 0.0
f, 0.0
f, 0.0
f, 1.0
f);
675 1.0
f, 0.0
f, 0.0
f, 0.0
f,
676 0.0
f, -3.0
f, 0.0
f, 0.0
f,
677 0.0
f, 0.0
f, 7.0
f, 0.0
f,
678 0.0
f, 0.0
f, 0.0
f, 1.0
f);
683 1.0
f, 0.0
f, 0.0
f, 0.0
f,
684 0.0
f, 1.0
f, 0.0
f, 0.0
f,
685 0.0
f, 0.0
f, 1.0
f, 0.0
f,
686 0.0
f, 0.0
f, 0.0
f, 1.0
f);
691 1.0
f, 0.0
f, 0.0
f, 0.0
f,
692 0.0
f, 1.0
f, 0.0
f, 0.0
f,
693 0.0
f, 0.0
f, 1.0
f, 0.0
f,
694 0.0
f, 0.0
f, 0.0
f, 1.0
f);
699 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
700 0.9504
f, -0.8836
f, 0.9244
f, 0.0
f,
701 1.0212
f, 0.1936
f, -1.3588
f, 0.0
f,
702 9.7
f, -8.6
f, 1.3
f, 1.0
f);
707 1.0
f, 0.0
f, 0.0
f, 0.0
f,
708 0.0
f, 1.0
f, 0.0
f, 0.0
f,
709 0.0
f, 0.0
f, 1.0
f, 0.0
f,
710 9.7
f, -8.6
f, 1.3
f, 1.0
f);
715 1.0
f, 0.0
f, 0.0
f, 0.0
f,
716 0.0
f, -3.0
f, 0.0
f, 0.0
f,
717 0.0
f, 0.0
f, 7.0
f, 0.0
f,
718 9.7
f, -8.6
f, 1.3
f, 1.0
f);
723 1.0
f, 0.0
f, 0.0
f, 0.0
f,
724 0.0
f, 1.0
f, 0.0
f, 0.0
f,
725 0.0
f, 0.0
f, 1.0
f, 0.0
f,
726 9.7
f, -8.6
f, 1.3
f, 1.0
f);
731 1.0
f, 0.0
f, 0.0
f, 0.0
f,
732 0.0
f, 1.0
f, 0.0
f, 0.0
f,
733 0.0
f, 0.0
f, 1.0
f, 0.0
f,
734 9.7
f, -8.6
f, 1.3
f, 1.0
f);
739 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
740 0.9504
f, -0.8836
f, 0.9244
f, 0.0
f,
741 1.0212
f, 0.1936
f, -1.3588
f, 0.0
f,
742 8.5985
f, -21.024
f, 14.383499, 1.0
f);
747 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
748 -2.8512
f, 2.6508
f, -2.7732
f, 0.0
f,
749 7.148399
f, 1.3552
f, -9.5116
f, 0.0
f,
750 0.0
f, 0.0
f, 0.0
f, 1.0
f);
755 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
756 0.9504
f, -0.8836
f, 0.9244
f, 0.0
f,
757 1.0212
f, 0.1936
f, -1.3588
f, 0.0
f,
758 0.0
f, 0.0
f, 0.0
f, 1.0
f);
763 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
764 0.9504
f, -0.8836
f, 0.9244
f, 0.0
f,
765 1.0212
f, 0.1936
f, -1.3588
f, 0.0
f,
766 0.0
f, 0.0
f, 0.0
f, 1.0
f);
771 1.0
f, 0.0
f, 0.0
f, 0.0
f,
772 0.0
f, -3.0
f, 0.0
f, 0.0
f,
773 0.0
f, 0.0
f, 7.0
f, 0.0
f,
774 0.0
f, 0.0
f, 0.0
f, 1.0
f);
779 1.0
f, 0.0
f, 0.0
f, 0.0
f,
780 0.0
f, 1.0
f, 0.0
f, 0.0
f,
781 0.0
f, 0.0
f, 1.0
f, 0.0
f,
782 0.0
f, 0.0
f, 0.0
f, 1.0
f);
787 1.0
f, 0.0
f, 0.0
f, 0.0
f,
788 0.0
f, 1.0
f, 0.0
f, 0.0
f,
789 0.0
f, 0.0
f, 1.0
f, 0.0
f,
790 0.0
f, 0.0
f, 0.0
f, 1.0
f);
795 25521.0
f, 39984.0
f, 20148.0
f, 0.0
f,
796 39984.0
f, 4933.0
f, -3324.0
f, 0.0
f,
797 20148.0
f, -3324.0
f, -5153.0
f, 0.0
f,
798 0.0
f, 0.0
f, 0.0
f, 1.0
f);
803 1.0
f, 0.0
f, 0.0
f, 0.0
f,
804 0.0
f, -3.0
f, 0.0
f, 0.0
f,
805 0.0
f, 0.0
f, 7.0
f, 0.0
f,
806 0.0
f, 52.0
f, 54.0
f, 1.0
f);
811 1.0
f, 0.0
f, 0.0
f, 0.0
f,
812 0.0
f, 1.0
f, 0.0
f, 0.0
f,
813 0.0
f, 0.0
f, 1.0
f, 0.0
f,
814 0.0
f, 0.0
f, 0.0
f, 1.0
f);
819 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
820 0.9504
f, -0.8836
f, 0.9244
f, 0.0
f,
821 1.0212
f, 0.1936
f, -1.3588
f, 0.0
f,
822 18.2985
f, -29.624001
f, 15.683499
f, 1.0
f);
827 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
828 -2.8512
f, 2.6508
f, -2.7732
f, 0.0
f,
829 7.148399
f, 1.3552
f, -9.5116
f, 0.0
f,
830 9.7
f, -8.6
f, 1.3
f, 1.0
f);
835 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
836 0.9504
f, -0.8836
f, 0.9244
f, 0.0
f,
837 1.0212
f, 0.1936
f, -1.3588
f, 0.0
f,
838 9.7
f, -8.6
f, 1.3
f, 1.0
f);
843 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
844 0.9504
f, -0.8836
f, 0.9244
f, 0.0
f,
845 1.0212
f, 0.1936
f, -1.3588
f, 0.0
f,
846 9.7
f, -8.6
f, 1.3
f, 1.0
f);
851 1.0
f, 0.0
f, 0.0
f, 0.0
f,
852 0.0
f, -3.0
f, 0.0
f, 0.0
f,
853 0.0
f, 0.0
f, 7.0
f, 0.0
f,
854 9.7
f, -8.6
f, 1.3
f, 1.0
f);
859 1.0
f, 0.0
f, 0.0
f, 0.0
f,
860 0.0
f, 1.0
f, 0.0
f, 0.0
f,
861 0.0
f, 0.0
f, 1.0
f, 0.0
f,
862 9.7
f, -8.6
f, 1.3
f, 1.0
f);
867 1.0
f, 0.0
f, 0.0
f, 0.0
f,
868 0.0
f, 1.0
f, 0.0
f, 0.0
f,
869 0.0
f, 0.0
f, 1.0
f, 0.0
f,
870 9.7
f, -8.6
f, 1.3
f, 1.0
f);
875 25521.0
f, 39984.0
f, 20148.0
f, 0.0
f,
876 39984.0
f, 4933.0
f, -3324.0
f, 0.0
f,
877 20148.0
f, -3324.0
f, -5153.0
f, 0.0
f,
878 9.7
f, -8.6
f, 1.3
f, 1.0
f);
883 1.0
f, 0.0
f, 0.0
f, 0.0
f,
884 0.0
f, -3.0
f, 0.0
f, 0.0
f,
885 0.0
f, 0.0
f, 7.0
f, 0.0
f,
886 9.7
f, 43.400002
f, 55.299999
f, 1.0
f);
891 1.0
f, 0.0
f, 0.0
f, 0.0
f,
892 0.0
f, 1.0
f, 0.0
f, 0.0
f,
893 0.0
f, 0.0
f, 1.0
f, 0.0
f,
894 9.7
f, -8.6
f, 1.3
f, 1.0
f);
899 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
900 -2.8512
f, 2.6508
f, -2.7732
f, 0.0
f,
901 7.148399
f, 1.3552
f, -9.5116
f, 0.0
f,
902 8.5985
f, -21.024
f, 14.383499, 1.0
f);
907 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
908 0.9504
f, -0.8836
f, 0.9244
f, 0.0
f,
909 1.0212
f, 0.1936
f, -1.3588
f, 0.0
f,
910 8.5985
f, -21.024
f, 14.383499, 1.0
f);
915 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
916 0.9504
f, -0.8836
f, 0.9244
f, 0.0
f,
917 1.0212
f, 0.1936
f, -1.3588
f, 0.0
f,
918 8.5985
f, -21.024
f, 14.383499, 1.0
f);
923 53094.015625
f, 2044.133789
f, 21711.687500
f, 0.0
f,
924 -7294.705078
f, 47440.683594
f, 28077.113281, 0.0
f,
925 -12749.161133
f, 28365.580078
f, 13503.520508
f, 0.0
f,
926 0.0
f, 0.0
f, 0.0
f, 1.0
f);
931 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
932 -2.8512
f, 2.6508
f, -2.7732
f, 0.0
f,
933 7.148399
f, 1.3552
f, -9.5116
f, 0.0
f,
934 104.565598
f, -35.492798
f, -25.306400
f, 1.0
f);
939 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
940 0.9504
f, -0.8836
f, 0.9244
f, 0.0
f,
941 1.0212
f, 0.1936
f, -1.3588
f, 0.0
f,
942 0.0
f, 0.0
f, 0.0
f, 1.0
f);
947 25521.0
f, 39984.0
f, 20148.0
f, 0.0
f,
948 39984.0
f, 4933.0
f, -3324.0
f, 0.0
f,
949 20148.0
f, -3324.0
f, -5153.0
f, 0.0
f,
950 0.0
f, 0.0
f, 0.0
f, 1.0
f);
955 1.0
f, 0.0
f, 0.0
f, 0.0
f,
956 0.0
f, -3.0
f, 0.0
f, 0.0
f,
957 0.0
f, 0.0
f, 7.0
f, 0.0
f,
958 0.0
f, 52.0
f, 54.0
f, 1.0
f);
963 1.0
f, 0.0
f, 0.0
f, 0.0
f,
964 0.0
f, 1.0
f, 0.0
f, 0.0
f,
965 0.0
f, 0.0
f, 1.0
f, 0.0
f,
966 0.0
f, 0.0
f, 0.0
f, 1.0
f);
971 25521.0
f, 39984.0
f, 20148.0
f, 0.0
f,
972 39984.0
f, 4933.0
f, -3324.0
f, 0.0
f,
973 20148.0
f, -3324.0
f, -5153.0
f, 0.0
f,
974 -287420.0
f, -14064.0
f, 37122.0
f, 1.0
f);
979 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
980 -2.8512
f, 2.6508
f, -2.7732
f, 0.0
f,
981 7.148399
f, 1.3552
f, -9.5116
f, 0.0
f,
982 18.2985
f, -29.624001
f, 15.683499
f, 1.0
f);
987 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
988 0.9504
f, -0.8836
f, 0.9244
f, 0.0
f,
989 1.0212
f, 0.1936
f, -1.3588
f, 0.0
f,
990 18.2985
f, -29.624001
f, 15.683499
f, 1.0
f);
995 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
996 0.9504
f, -0.8836
f, 0.9244
f, 0.0
f,
997 1.0212
f, 0.1936
f, -1.3588
f, 0.0
f,
998 18.2985
f, -29.624001
f, 15.683499
f, 1.0
f);
1003 53094.015625
f, 2044.133789
f, 21711.687500
f, 0.0
f,
1004 -7294.705078
f, 47440.683594
f, 28077.113281, 0.0
f,
1005 -12749.161133
f, 28365.580078
f, 13503.520508
f, 0.0
f,
1006 9.7
f, -8.6
f, 1.3
f, 1.0
f);
1011 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
1012 -2.8512
f, 2.6508
f, -2.7732
f, 0.0
f,
1013 7.148399
f, 1.3552
f, -9.5116
f, 0.0
f,
1014 114.265594
f, -44.092796
f, -24.006401
f, 1.0
f);
1019 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
1020 0.9504
f, -0.8836
f, 0.9244
f, 0.0
f,
1021 1.0212
f, 0.1936
f, -1.3588
f, 0.0
f,
1022 9.7
f, -8.6
f, 1.3
f, 1.0
f);
1027 25521.0
f, 39984.0
f, 20148.0
f, 0.0
f,
1028 39984.0
f, 4933.0
f, -3324.0
f, 0.0
f,
1029 20148.0
f, -3324.0
f, -5153.0
f, 0.0
f,
1030 9.7
f, -8.6
f, 1.3
f, 1.0
f);
1035 1.0
f, 0.0
f, 0.0
f, 0.0
f,
1036 0.0
f, -3.0
f, 0.0
f, 0.0
f,
1037 0.0
f, 0.0
f, 7.0
f, 0.0
f,
1038 9.7
f, 43.400002
f, 55.299999
f, 1.0
f);
1043 1.0
f, 0.0
f, 0.0
f, 0.0
f,
1044 0.0
f, 1.0
f, 0.0
f, 0.0
f,
1045 0.0
f, 0.0
f, 1.0
f, 0.0
f,
1046 9.7
f, -8.6
f, 1.3
f, 1.0
f);
1051 25521.0
f, 39984.0
f, 20148.0
f, 0.0
f,
1052 39984.0
f, 4933.0
f, -3324.0
f, 0.0
f,
1053 20148.0
f, -3324.0
f, -5153.0
f, 0.0
f,
1054 -287410.3125
f, -14072.599609
f, 37123.300781
f, 1.0
f);
1059 53094.015625
f, 2044.133789
f, 21711.687500
f, 0.0
f,
1060 -7294.705078
f, 47440.683594
f, 28077.113281, 0.0
f,
1061 -12749.161133
f, 28365.580078
f, 13503.520508
f, 0.0
f,
1062 8.598499
f, -21.024
f, 14.383499
f, 1.0
f);
1067 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
1068 -2.8512
f, 2.6508
f, -2.7732
f, 0.0
f,
1069 7.148399
f, 1.3552
f, -9.5116
f, 0.0
f,
1070 113.164093
f, -56.5168
f, -10.922897
f, 1.0
f);
1075 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
1076 0.9504
f, -0.8836
f, 0.9244
f, 0.0
f,
1077 1.0212
f, 0.1936
f, -1.3588
f, 0.0
f,
1078 8.5985
f, -21.024
f, 14.383499, 1.0
f);
1083 53094.015625
f, 2044.133789
f, 21711.687500
f, 0.0
f,
1084 -7294.705078
f, 47440.683594
f, 28077.113281, 0.0
f,
1085 -12749.161133
f, 28365.580078
f, 13503.520508
f, 0.0
f,
1086 86280.34375
f, -357366.3125
f, -200024.125
f, 1.0
f);
1091 25521.0
f, 39984.0
f, 20148.0
f, 0.0
f,
1092 39984.0
f, 4933.0
f, -3324.0
f, 0.0
f,
1093 20148.0
f, -3324.0
f, -5153.0
f, 0.0
f,
1094 -287410.3125
f, -14064.0
f, 37122.0
f, 1.0
f);
1099 53094.015625
f, 2044.133789
f, 21711.687500
f, 0.0
f,
1100 -7294.705078
f, 47440.683594
f, 28077.113281, 0.0
f,
1101 -12749.161133
f, 28365.580078
f, 13503.520508
f, 0.0
f,
1102 86280.34375
f, -357366.3125
f, -200009.75
f, 1.0
f);
1107 25521.0
f, 39984.0
f, 20148.0
f, 0.0
f,
1108 39984.0
f, 4933.0
f, -3324.0
f, 0.0
f,
1109 20148.0
f, -3324.0
f, -5153.0
f, 0.0
f,
1110 -287410.3125
f, -14072.599609
f, 37123.300781
f, 1.0
f);
1115 53094.015625
f, 2044.133789
f, 21711.687500
f, 0.0
f,
1116 -7294.705078
f, 47440.683594
f, 28077.113281, 0.0
f,
1117 -12749.161133
f, 28365.580078
f, 13503.520508
f, 0.0
f,
1118 86290.046875
f, -357374.90625
f, -200022.828125
f, 1.0
f);
1123 -0.21480007
f, 1.3116000
f, 0.47520003
f, 0.0
f,
1124 0.95040143
f, -0.88360137
f, 0.92439979
f, 0.0
f,
1125 1.0212044
f, 0.19359307
f, -1.3588026
f, 0.0
f,
1126 18.298532
f, -29.624001
f, 15.683499
f, 1.0
f);
1131 -0.2148
f, 1.3116
f, 0.4752
f, 0.0
f,
1132 -2.8512
f, 2.6508
f, -2.7732
f, 0.0
f,
1133 7.148399
f, 1.3552
f, -9.5116
f, 0.0
f,
1134 122.86409
f, -65.116798
f, -9.622897
f, 1.0
f);
1139 53094.015625
f, 2044.133789
f, 21711.687500
f, 0.0
f,
1140 -7294.705078
f, 47440.683594
f, 28077.113281, 0.0
f,
1141 -12749.161133
f, 28365.580078
f, 13503.520508
f, 0.0
f,
1142 18.2985
f, -29.624001
f, 15.683499
f, 1.0
f);
1146 q.x = 1.0f,
q.y = 1.0f,
q.z = 1.0f,
q.w = 1.0f,
1147 axis.
x = 1.0f, axis.
y = 1.0f, axis.
z = 2.0f,
1150 41.0
f, -12.0
f, -24.0
f, 0.0
f,
1151 -12.0
f, 25.0
f, -12.0
f, 0.0
f,
1152 -24.0
f, -12.0
f, 34.0
f, 0.0
f,
1153 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1157 q.x = 1.0f,
q.y = 1.0f,
q.z = 1.0f,
q.w = 1.0f,
1158 axis.
x = 1.0f, axis.
y = 1.0f, axis.
z = 3.0f,
1161 57.0
f, -12.0
f, -36.0
f, 0.0
f,
1162 -12.0
f, 25.0
f, -12.0
f, 0.0
f,
1163 -36.0
f, -12.0
f, 43.0
f, 0.0
f,
1164 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1168 q.x = 1.0f,
q.y = 1.0f,
q.z = 1.0f,
q.w = 0.0f,
1169 axis.
x = 1.0f, axis.
y = 1.0f, axis.
z = 3.0f,
1172 25.0
f, 0.0
f, -20.0
f, 0.0
f,
1173 0.0
f, 25.0
f, -20.0
f, 0.0
f,
1174 -20.0
f, -20.0
f, 35.0
f, 0.0
f,
1175 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1179 q.x = 1.0f,
q.y = 1.0f,
q.z = 0.0f,
q.w = 0.0f,
1180 axis.
x = 1.0f, axis.
y = 1.0f, axis.
z = 3.0f,
1183 5.0
f, -4.0
f, 0.0
f, 0.0
f,
1184 -4.0
f, 5.0
f, 0.0
f, 0.0
f,
1185 0.0
f, 0.0
f, 27.0
f, 0.0
f,
1186 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1190 q.x = 1.0f,
q.y = 0.0f,
q.z = 0.0f,
q.w = 0.0f,
1191 axis.
x = 5.0f, axis.
y = 2.0f, axis.
z = 1.0f,
1194 5.0
f, 0.0
f, 0.0
f, 0.0
f,
1195 0.0
f, 2.0
f, 0.0
f, 0.0
f,
1196 0.0
f, 0.0
f, 1.0
f, 0.0
f,
1197 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1201 q.x = 1.0f,
q.y = 0.0f,
q.z = 0.0f,
q.w = 0.0f,
1202 axis.
x = 1.0f, axis.
y = 4.0f, axis.
z = 1.0f,
1205 1.0
f, 0.0
f, 0.0
f, 0.0
f,
1206 0.0
f, 4.0
f, 0.0
f, 0.0
f,
1207 0.0
f, 0.0
f, 1.0
f, 0.0
f,
1208 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1212 q.x = 0.0f,
q.y = 1.0f,
q.z = 0.0f,
q.w = 0.0f,
1213 axis.
x = 1.0f, axis.
y = 4.0f, axis.
z = 1.0f,
1216 1.0
f, 0.0
f, 0.0
f, 0.0
f,
1217 0.0
f, 4.0
f, 0.0
f, 0.0
f,
1218 0.0
f, 0.0
f, 1.0
f, 0.0
f,
1219 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1223 q.x = 1.0f,
q.y = 0.0f,
q.z = 0.0f,
q.w = 1.0f,
1224 axis.
x = 1.0f, axis.
y = 4.0f, axis.
z = 1.0f,
1227 1.0
f, 0.0
f, 0.0
f, 0.0
f,
1228 0.0
f, 8.0
f, -6.0
f, 0.0
f,
1229 0.0
f, -6.0
f, 17.0
f, 0.0
f,
1230 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1234 q.x = 1.0f,
q.y = 0.0f,
q.z = 0.0f,
q.w = 1.0f,
1235 axis.
x = 0.0f, axis.
y = 4.0f, axis.
z = 0.0f,
1238 0.0
f, 0.0
f, 0.0
f, 0.0
f,
1239 0.0
f, 4.0
f, -8.0
f, 0.0
f,
1240 0.0
f, -8.0
f, 16.0
f, 0.0
f,
1241 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1245 q.x = 0.0f,
q.y = 1.0f,
q.z = 0.0f,
q.w = 1.0f,
1246 axis.
x = 1.0f, axis.
y = 4.0f, axis.
z = 1.0f,
1249 5.0
f, 0.0
f, 0.0
f, 0.0
f,
1250 0.0
f, 4.0
f, 0.0
f, 0.0
f,
1251 0.0
f, 0.0
f, 5.0
f, 0.0
f,
1252 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1256 q.x = 1.0f,
q.y = 0.0f,
q.z = 0.0f,
q.w = 0.0f,
1257 axis.
x = 1.0f, axis.
y = 1.0f, axis.
z = 3.0f,
1260 1.0
f, 0.0
f, 0.0
f, 0.0
f,
1261 0.0
f, 1.0
f, 0.0
f, 0.0
f,
1262 0.0
f, 0.0
f, 3.0
f, 0.0
f,
1263 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1267 q.x = 11.0f,
q.y = 13.0f,
q.z = 15.0f,
q.w = 17.0f,
1268 axis.
x = 3.0f, axis.
y = 3.0f, axis.
z = 3.0f,
1271 3796587.0
f, -1377948.0
f, -1589940.0
f, 0.0
f,
1272 -1377948.0
f, 3334059.0
f, -1879020.0
f, 0.0
f,
1273 -1589940.0
f, -1879020.0
f, 2794443.0
f, 0.0
f,
1274 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1278 q.x = 11.0f,
q.y = 13.0f,
q.z = 15.0f,
q.w = 17.0f,
1279 axis.
x = 1.0f, axis.
y = 1.0f, axis.
z = 1.0f,
1282 1265529.0
f, -459316.0
f, -529980.0
f, 0.0
f,
1283 -459316.0
f, 1111353.0
f, -626340.0
f, 0.0
f,
1284 -529980.0
f, -626340.0
f, 931481.0
f, 0.0
f,
1285 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1289 q.x = 11.0f,
q.y = 13.0f,
q.z = 15.0f,
q.w = 17.0f,
1290 axis.
x = 1.0f, axis.
y = 1.0f, axis.
z = 3.0f,
1293 2457497.0
f, -434612.0
f, -1423956.0
f, 0.0
f,
1294 -434612.0
f, 1111865.0
f, -644868.0
f, 0.0
f,
1295 -1423956.0
f, -644868.0
f, 1601963.0
f, 0.0
f,
1296 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1300 q.x = 11.0f,
q.y = 13.0f,
q.z = 15.0f,
q.w = 17.0f,
1301 axis.
x = 0.0f, axis.
y = 0.0f, axis.
z = 3.0f,
1304 1787952.0
f, 37056.0
f, -1340964.0
f, 0.0
f,
1305 37056.0
f, 768.0
f, -27792.0
f, 0.0
f,
1306 -1340964.0
f, -27792.0
f, 1005723.0
f, 0.0
f,
1307 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1311 q.x = 11.0f,
q.y = 13.0f,
q.z = 15.0f,
q.w = 17.0f,
1312 axis.
x = 0.0f, axis.
y = 0.0f, axis.
z = 1.0f,
1315 595984.0
f, 12352.0
f, -446988.0
f, 0.0
f,
1316 12352.0
f, 256.0
f, -9264.0
f, 0.0
f,
1317 -446988.0
f, -9264.0
f, 335241.0
f, 0.0
f,
1318 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1322 q.x = 11.0f,
q.y = 13.0f,
q.z = 15.0f,
q.w = 17.0f,
1323 axis.
x = 0.0f, axis.
y = 3.0f, axis.
z = 0.0f,
1326 150528.0
f, 464352.0
f, -513408.0
f, 0.0
f,
1327 464352.0
f, 1432443.0
f, -1583772.0
f, 0.0
f,
1328 -513408.0
f, -1583772.0
f, 1751088.0
f, 0.0
f,
1329 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1333 q.x = 11.0f,
q.y = 13.0f,
q.z = 15.0f,
q.w = 17.0f,
1334 axis.
x = 0.0f, axis.
y = 1.0f, axis.
z = 0.0f,
1337 50176.0
f, 154784.0
f, -171136.0
f, 0.0
f,
1338 154784.0
f, 477481.0
f, -527924.0
f, 0.0
f,
1339 -171136.0
f, -527924.0
f, 583696.0
f, 0.0
f,
1340 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1344 q.x = 11.0f,
q.y = 13.0f,
q.z = 15.0f,
q.w = 17.0f,
1345 axis.
x = 1.0f, axis.
y = 0.0f, axis.
z = 0.0f,
1348 619369.0
f, -626452.0
f, 88144.0
f, 0.0
f,
1349 -626452.0
f, 633616.0
f, -89152.0
f, 0.0
f,
1350 88144.0
f, -89152, 12544.0
f, 0.0
f,
1351 0.0
f, 0.0
f, 0.0
f, 1.0
f);
1357 1.0
f, 0.0
f, 0.0
f, 0.0
f,
1358 0.0
f, 1.0
f, 0.0
f, 0.0
f,
1359 0.0
f, 0.0
f, 1.0
f, 0.0
f,
1360 0.69
f, 0.53
f, 4.11
f, 1.0
f);
1366 10.0
f, 11.0
f, 19.0
f, 2.0
f,
1367 5.0
f, 20.0
f, -21.0
f, 3.0
f,
1368 7.0
f, 16.0
f, 30.
f, -4.0
f,
1369 8.0
f, 33.0
f, 43.0
f, -40.0
f);
1378 D3DXVECTOR3 expectedvec, gotvec, vec1, vec2, vec3;
1383 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1384 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1385 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1386 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1387 U(
mat).m[0][0] = 10.0f;
U(
mat).m[1][1] = 20.0f;
U(
mat).m[2][2] = 30.0f;
1388 U(
mat).m[3][3] = -40.0f;
1399 got = D3DXPlaneDot(
NULL,&
vec),
1407 got = D3DXPlaneDotCoord(&
plane,&
vec),
1410 got = D3DXPlaneDotCoord(
NULL,&
vec),
1413 got = D3DXPlaneDotCoord(
NULL,
NULL),
1418 got = D3DXPlaneDotNormal(&
plane,&
vec),
1421 got = D3DXPlaneDotNormal(
NULL,&
vec),
1424 got = D3DXPlaneDotNormal(
NULL,
NULL),
1428 vec1.
x = 11.0f; vec1.
y = 13.0f; vec1.
z = 15.0f;
1429 vec2.
x = 17.0f; vec2.
y = 31.0f; vec2.
z = 24.0f;
1430 expectedplane.
a = 17.0f; expectedplane.
b = 31.0f; expectedplane.
c = 24.0f; expectedplane.
d = -950.0f;
1433 gotplane.
a = vec2.
x; gotplane.
b = vec2.
y; gotplane.
c = vec2.
z;
1436 gotplane.a = vec1.
x; gotplane.b = vec1.
y; gotplane.c = vec1.
z;
1437 expectedplane.
d = -1826.0f;
1442 vec1.
x = 1.0f; vec1.
y = 2.0f; vec1.
z = 3.0f;
1443 vec2.
x = 1.0f; vec2.
y = -6.0f; vec2.
z = -5.0f;
1444 vec3.
x = 83.0f; vec3.
y = 74.0f; vec3.
z = 65.0f;
1445 expectedplane.
a = 0.085914f; expectedplane.
b = -0.704492f; expectedplane.
c = 0.704492f; expectedplane.
d = -0.790406f;
1450 vec1.
x = 9.0f; vec1.
y = 6.0f; vec1.
z = 3.0f;
1451 vec2.
x = 2.0f; vec2.
y = 5.0f; vec2.
z = 8.0f;
1452 expectedvec.
x = 20.0f/3.0f; expectedvec.
y = 17.0f/3.0f; expectedvec.
z = 14.0f/3.0f;
1456 vec1.
x = 11.0f; vec1.
y = 13.0f; vec1.
z = 15.0f;
1457 vec2.
x = 17.0f; vec2.
y = 31.0f; vec2.
z = 24.0f;
1458 expectedvec.
x = 20.0f/3.0f; expectedvec.
y = 17.0f/3.0f; expectedvec.
z = 14.0f/3.0f;
1460 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1463 expectedplane.
a = -3.0f/
sqrt(26.0
f); expectedplane.
b = -1.0f/
sqrt(26.0
f); expectedplane.
c = 4.0f/
sqrt(26.0
f); expectedplane.
d = 7.0/
sqrt(26.0
f);
1466 nulplane.
a = 0.0; nulplane.
b = 0.0f, nulplane.
c = 0.0f; nulplane.
d = 0.0f;
1467 expectedplane.
a = 0.0f; expectedplane.
b = 0.0f; expectedplane.
c = 0.0f; expectedplane.
d = 0.0f;
1472 expectedplane.
a = 49.0f; expectedplane.
b = -98.0f; expectedplane.
c = 55.0f; expectedplane.
d = -165.0f;
1480 D3DXQUATERNION expectedquat, gotquat, Nq, Nq1, nul, smallq, smallr,
q,
r,
s,
t,
u;
1486 nul.
x = 0.0f; nul.
y = 0.0f; nul.
z = 0.0f; nul.
w = 0.0f;
1487 q.x = 1.0f,
q.y = 2.0f;
q.z = 4.0f;
q.w = 10.0f;
1488 r.x = -3.0f;
r.y = 4.0f;
r.z = -5.0f;
r.w = 7.0;
1489 t.x = -1111.0f,
t.y = 111.0f;
t.z = -11.0f;
t.w = 1.0f;
1490 u.x = 91.0f;
u.y = - 82.0f;
u.z = 7.3f;
u.w = -6.4f;
1491 smallq.
x = 0.1f; smallq.
y = 0.2f; smallq.
z= 0.3f; smallq.
w = 0.4f;
1492 smallr.
x = 0.5f; smallr.
y = 0.6f; smallr.
z= 0.7f; smallr.
w = 0.8f;
1498 expectedquat.
x = -867.444458; expectedquat.
y = 87.851111f; expectedquat.
z = -9.937778f; expectedquat.
w = 3.235555f;
1503 expectedquat.
x = -1.0f; expectedquat.
y = -2.0f; expectedquat.
z = -4.0f; expectedquat.
w = 10.0f;
1504 D3DXQuaternionConjugate(&gotquat,&
q);
1507 funcpointer = D3DXQuaternionConjugate(&gotquat,
NULL);
1508 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1509 funcpointer = D3DXQuaternionConjugate(
NULL,
NULL);
1510 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1513 got = D3DXQuaternionDot(&
q,&
r);
1515 ok(
equal,
"Got unexpected dot %.8e.\n", got);
1517 got = D3DXQuaternionDot(
NULL,&
r);
1519 ok(
equal,
"Got unexpected dot %.8e.\n", got);
1520 got = D3DXQuaternionDot(
NULL,
NULL);
1522 ok(
equal,
"Got unexpected dot %.8e.\n", got);
1525 expectedquat.
x = -0.216382f; expectedquat.
y = -0.432764f; expectedquat.
z = -0.8655270f; expectedquat.
w = -0.129449f;
1529 expectedquat.
x = 0.0f; expectedquat.
y = 0.0f; expectedquat.
z = 0.0f; expectedquat.
w = 1.0f;
1533 Nq1.
x = 0.2f; Nq1.
y = 0.1f; Nq1.
z = 0.3; Nq1.
w= 0.9f;
1534 expectedquat.
x = 0.195366; expectedquat.
y = 0.097683f; expectedquat.
z = 0.293049f; expectedquat.
w = 0.930813f;
1539 expectedquat.
x = 0.0f; expectedquat.
y = 0.0f; expectedquat.
z = 0.0f; expectedquat.
w = 1.0f;
1540 D3DXQuaternionIdentity(&gotquat);
1543 funcpointer = D3DXQuaternionIdentity(
NULL);
1544 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1547 expectedquat.
x = -1.0f/121.0f; expectedquat.
y = -2.0f/121.0f; expectedquat.
z = -4.0f/121.0f; expectedquat.
w = 10.0f/121.0f;
1551 expectedquat.
x = 1.0f; expectedquat.
y = 2.0f; expectedquat.
z = 4.0f; expectedquat.
w = 10.0f;
1557 s.x = 0.0f;
s.y = 0.0f;
s.z = 0.0f;
s.w = 1.0f;
1558 expectedbool =
TRUE;
1559 gotbool = D3DXQuaternionIsIdentity(&
s);
1560 ok( expectedbool == gotbool,
"Expected boolean : %d, Got bool : %d\n", expectedbool, gotbool);
1561 s.x = 2.3f;
s.y = -4.2f;
s.z = 1.2f;
s.w=0.2f;
1562 expectedbool =
FALSE;
1563 gotbool = D3DXQuaternionIsIdentity(&
q);
1564 ok( expectedbool == gotbool,
"Expected boolean : %d, Got bool : %d\n", expectedbool, gotbool);
1566 gotbool = D3DXQuaternionIsIdentity(
NULL);
1567 ok(gotbool ==
FALSE,
"Expected boolean: %d, Got boolean: %d\n",
FALSE, gotbool);
1570 got = D3DXQuaternionLength(&
q);
1572 ok(
equal,
"Got unexpected length %.8e.\n", got);
1574 got = D3DXQuaternionLength(
NULL);
1576 ok(
equal,
"Got unexpected length %.8e.\n", got);
1579 got = D3DXQuaternionLengthSq(&
q);
1581 ok(
equal,
"Got unexpected length %.8e.\n", got);
1583 got = D3DXQuaternionLengthSq(
NULL);
1585 ok(
equal,
"Got unexpected length %.8e.\n", got);
1588 expectedquat.
x = 1.0f; expectedquat.
y = 2.0f; expectedquat.
z = 4.0f; expectedquat.
w = 0.0f;
1591 expectedquat.
x = -3.0f; expectedquat.
y = 4.0f; expectedquat.
z = -5.0f; expectedquat.
w = 0.0f;
1594 Nq.
x = 1.0f/11.0f; Nq.
y = 2.0f/11.0f; Nq.
z = 4.0f/11.0f; Nq.
w=10.0f/11.0f;
1595 expectedquat.
x = 0.093768f; expectedquat.
y = 0.187536f; expectedquat.
z = 0.375073f; expectedquat.
w = 0.0f;
1598 Nq.
x = 0.0f; Nq.
y = 0.0f; Nq.
z = 0.0f; Nq.
w = 1.0f;
1599 expectedquat.
x = 0.0f; expectedquat.
y = 0.0f; expectedquat.
z = 0.0f; expectedquat.
w = 0.0f;
1602 Nq.
x = 5.4f; Nq.
y = 1.2f; Nq.
z = -0.3f; Nq.
w = -0.3f;
1603 expectedquat.
x = 10.616652f; expectedquat.
y = 2.359256f; expectedquat.
z = -0.589814f; expectedquat.
w = 0.0f;
1607 Nq1.
x = 0.2f; Nq1.
y = 0.1f; Nq1.
z = 0.3; Nq1.
w = 0.9f;
1608 expectedquat.
x = 0.206945f; expectedquat.
y = 0.103473f; expectedquat.
z = 0.310418f; expectedquat.
w = 0.0f;
1612 Nq1.
x = 0.2f; Nq1.
y = 0.1f; Nq1.
z = 0.3; Nq1.
w = -1.0f;
1613 expectedquat.
x = 0.2f; expectedquat.
y = 0.1f; expectedquat.
z = 0.3f; expectedquat.
w = 0.0f;
1618 expectedquat.
x = 3.0f; expectedquat.
y = 61.0f; expectedquat.
z = -32.0f; expectedquat.
w = 85.0f;
1623 expectedquat.
x = 1.0f/11.0f; expectedquat.
y = 2.0f/11.0f; expectedquat.
z = 4.0f/11.0f; expectedquat.
w = 10.0f/11.0f;
1628 axis.
x = 2.0f; axis.
y = 7.0; axis.
z = 13.0f;
1630 expectedquat.
x = 0.067116; expectedquat.
y = 0.234905f; expectedquat.
z = 0.436251f; expectedquat.
w = 0.866025f;
1634 axis.
x = 0.0f; axis.
y = 0.0; axis.
z = 0.0f;
1635 expectedquat.
x = 0.0f; expectedquat.
y = 0.0f; expectedquat.
z = 0.0f; expectedquat.
w = 0.866025f;
1641 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1642 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1643 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1644 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1645 U(
mat).m[0][0] = 10.0f;
U(
mat).m[1][1] = 20.0f;
U(
mat).m[2][2] = 30.0f;
1646 U(
mat).m[3][3] = 48.0f;
1647 expectedquat.
x = 2.368682f; expectedquat.
y = 0.768221f; expectedquat.
z = -0.384111f; expectedquat.
w = 3.905125f;
1651 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1652 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1653 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1654 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1655 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = -60.0f;
U(
mat).m[2][2] = 40.0f;
1656 U(
mat).m[3][3] = 48.0f;
1657 expectedquat.
x = 1.233905f; expectedquat.
y = -0.237290f; expectedquat.
z = 5.267827f; expectedquat.
w = -0.284747f;
1661 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1662 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1663 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1664 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1665 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 60.0f;
U(
mat).m[2][2] = -80.0f;
1666 U(
mat).m[3][3] = 48.0f;
1667 expectedquat.
x = 0.651031f; expectedquat.
y = 6.144103f; expectedquat.
z = -0.203447f; expectedquat.
w = 0.488273f;
1671 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1672 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1673 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1674 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1675 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = -0.9f;
1676 U(
mat).m[3][3] = 48.0f;
1677 expectedquat.
x = 1.709495f; expectedquat.
y = 2.339872f; expectedquat.
z = -0.534217f; expectedquat.
w = 1.282122f;
1681 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1682 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1683 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1684 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1685 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = -0.51f;
1686 U(
mat).m[3][3] = 48.0f;
1687 expectedquat.
x = 1.724923f; expectedquat.
y = 2.318944f; expectedquat.
z = -0.539039f; expectedquat.
w = 1.293692f;
1691 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1692 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1693 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1694 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1695 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = -0.49f;
1696 U(
mat).m[3][3] = 48.0f;
1697 expectedquat.
x = 1.725726f; expectedquat.
y = 2.317865f; expectedquat.
z = -0.539289f; expectedquat.
w = 1.294294f;
1701 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1702 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1703 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1704 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1705 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = -0.01f;
1706 U(
mat).m[3][3] = 48.0f;
1707 expectedquat.
x = 1.745328f; expectedquat.
y = 2.291833f; expectedquat.
z = -0.545415f; expectedquat.
w = 1.308996f;
1711 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1712 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1713 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1714 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1715 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = 0.0f;
1716 U(
mat).m[3][3] = 48.0f;
1717 expectedquat.
x = 1.745743f; expectedquat.
y = 2.291288f; expectedquat.
z = -0.545545f; expectedquat.
w = 1.309307f;
1721 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1722 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1723 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1724 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1725 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = 0.01f;
1726 U(
mat).m[3][3] = 48.0f;
1727 expectedquat.
x = 18.408188f; expectedquat.
y = 5.970223f; expectedquat.
z = -2.985111f; expectedquat.
w = 0.502494f;
1731 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1732 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1733 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1734 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1735 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = 0.5f;
1736 U(
mat).m[3][3] = 48.0f;
1737 expectedquat.
x = 15.105186f; expectedquat.
y = 4.898980f; expectedquat.
z = -2.449490f; expectedquat.
w = 0.612372f;
1741 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1742 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1743 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1744 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1745 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = 0.70f;
1746 U(
mat).m[3][3] = 48.0f;
1747 expectedquat.
x = 14.188852f; expectedquat.
y = 4.601790f; expectedquat.
z = -2.300895f; expectedquat.
w = 0.651920f;
1751 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1752 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1753 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1754 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1755 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = 0.99f;
1756 U(
mat).m[3][3] = 48.0f;
1757 expectedquat.
x = 13.114303f; expectedquat.
y = 4.253287f; expectedquat.
z = -2.126644f; expectedquat.
w = 0.705337f;
1761 U(
mat).m[0][1] = 5.0f;
U(
mat).m[0][2] = 7.0f;
U(
mat).m[0][3] = 8.0f;
1762 U(
mat).m[1][0] = 11.0f;
U(
mat).m[1][2] = 16.0f;
U(
mat).m[1][3] = 33.0f;
1763 U(
mat).m[2][0] = 19.0f;
U(
mat).m[2][1] = -21.0f;
U(
mat).m[2][3] = 43.0f;
1764 U(
mat).m[3][0] = 2.0f;
U(
mat).m[3][1] = 3.0f;
U(
mat).m[3][2] = -4.0f;
1765 U(
mat).m[0][0] = -10.0f;
U(
mat).m[1][1] = 10.0f;
U(
mat).m[2][2] = 2.0f;
1766 U(
mat).m[3][3] = 48.0f;
1767 expectedquat.
x = 10.680980f; expectedquat.
y = 3.464102f; expectedquat.
z = -1.732051f; expectedquat.
w = 0.866025f;
1772 expectedquat.
x = 0.303261f; expectedquat.
y = 0.262299f; expectedquat.
z = 0.410073f; expectedquat.
w = 0.819190f;
1777 expectedquat.
x = -0.2f; expectedquat.
y = 2.6f; expectedquat.
z = 1.3f; expectedquat.
w = 9.1f;
1780 expectedquat.
x = 334.0f; expectedquat.
y = -31.9f; expectedquat.
z = 6.1f; expectedquat.
w = 6.7f;
1783 expectedquat.
x = 0.239485f; expectedquat.
y = 0.346580f; expectedquat.
z = 0.453676f; expectedquat.
w = 0.560772f;
1788 expectedquat.
x = -156.296f; expectedquat.
y = 30.242f; expectedquat.
z = -2.5022f; expectedquat.
w = 7.3576f;
1793 r.x = 1.0f,
r.y = 2.0f;
r.z = 4.0f;
r.w = 10.0f;
1794 s.x = -3.0f;
s.y = 4.0f;
s.z = -5.0f;
s.w = 7.0;
1795 t.x = -1111.0f,
t.y = 111.0f;
t.z = -11.0f;
t.w = 1.0f;
1796 u.x = 91.0f;
u.y = - 82.0f;
u.z = 7.3f;
u.w = -6.4f;
1798 expectedquat.
x = 7.121285f; expectedquat.
y = 2.159964f; expectedquat.
z = -3.855094f; expectedquat.
w = 5.362844f;
1800 expectedquat.
x = -1113.492920f; expectedquat.
y = 82.679260f; expectedquat.
z = -6.696645f; expectedquat.
w = -4.090050f;
1802 expectedquat.
x = -1111.0f; expectedquat.
y = 111.0f; expectedquat.
z = -11.0f; expectedquat.
w = 1.0f;
1806 expectedquat.
x = -1113.492920f; expectedquat.
y = 82.679260f; expectedquat.
z = -6.696645f; expectedquat.
w = -4.090050f;
1811 r.x = 0.2f;
r.y = 0.3f;
r.z = 1.3f;
r.w = -0.6f;
1812 s.x = -3.0f;
s.y =-2.0f;
s.z = 4.0f;
s.w = 0.2f;
1813 t.x = 0.4f;
t.y = 8.3f;
t.z = -3.1f;
t.w = -2.7f;
1814 u.x = 1.1f;
u.y = -0.7f;
u.z = 9.2f;
u.w = 0.0f;
1816 expectedquat.
x = -4.139569f; expectedquat.
y = -2.469115f; expectedquat.
z = 2.364477f; expectedquat.
w = 0.465494f;
1818 expectedquat.
x = 2.342533f; expectedquat.
y = 2.365127f; expectedquat.
z = 8.628538f; expectedquat.
w = -0.898356f;
1820 expectedquat.
x = 1.1f; expectedquat.
y = -0.7f; expectedquat.
z = 9.2f; expectedquat.
w = 0.0f;
1823 expectedquat.
x = -3.754567f; expectedquat.
y = -0.586085f; expectedquat.
z = 3.815818f; expectedquat.
w = -0.198150f;
1825 expectedquat.
x = 0.140773f; expectedquat.
y = -8.737090f; expectedquat.
z = -0.516593f; expectedquat.
w = 3.053942f;
1827 expectedquat.
x = -0.4f; expectedquat.
y = -8.3f; expectedquat.
z = 3.1f; expectedquat.
w = 2.7f;
1829 r.x = -1.0f;
r.y = 0.0f;
r.z = 0.0f;
r.w = 0.0f;
1830 s.x = 1.0f;
s.y =0.0f;
s.z = 0.0f;
s.w = 0.0f;
1831 t.x = 1.0f;
t.y = 0.0f;
t.z = 0.0f;
t.w = 0.0f;
1832 u.x = -1.0f;
u.y = 0.0f;
u.z = 0.0f;
u.w = 0.0f;
1834 expectedquat.
x = 1.0f; expectedquat.
y = 0.0f; expectedquat.
z = 0.0f; expectedquat.
w = 0.0f;
1836 expectedquat.
x = 1.0f; expectedquat.
y = 0.0f; expectedquat.
z = 0.0f; expectedquat.
w = 0.0f;
1838 expectedquat.
x = 1.0f; expectedquat.
y = 0.0f; expectedquat.
z = 0.0f; expectedquat.
w = 0.0f;
1842 Nq.
x = 1.0f/22.0f; Nq.
y = 2.0f/22.0f; Nq.
z = 4.0f/22.0f; Nq.
w = 10.0f/22.0f;
1843 expectedvec.
x = 1.0f/22.0f; expectedvec.
y = 2.0f/22.0f; expectedvec.
z = 4.0f/22.0f;
1849 expectedvec.
x = 1.0f; expectedvec.
y = 2.0f; expectedvec.
z = 4.0f;
1853 expectedvec.
x = 0.0f; expectedvec.
y = 0.0f; expectedvec.
z = 0.0f;
1871 float coeff1, coeff2, got,
scale;
1875 nul.
x = 0.0f; nul.
y = 0.0f;
1876 u.x = 3.0f;
u.y = 4.0f;
1877 v.x = -7.0f;
v.y = 9.0f;
1878 w.x = 4.0f;
w.y = -3.0f;
1879 x.x = 2.0f;
x.y = -11.0f;
1882 1.0
f, 2.0
f, 3.0
f, 4.0
f,
1883 5.0
f, 6.0
f, 7.0
f, 8.0
f,
1884 9.0
f, 10.0
f, 11.0
f, 12.0
f,
1885 13.0
f, 14.0
f, 15.0
f, 16.0
f);
1887 coeff1 = 2.0f; coeff2 = 5.0f;
1891 expectedvec.
x = -4.0f; expectedvec.
y = 13.0f;
1892 D3DXVec2Add(&gotvec,&
u,&
v);
1895 funcpointer = D3DXVec2Add(&gotvec,
NULL,&
v);
1896 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1898 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1901 expectedvec.
x = -12.0f; expectedvec.
y = -21.0f;
1906 expectedvec.
x = 5820.25f; expectedvec.
y = -3654.5625f;
1911 got = D3DXVec2CCW(&
u, &
v);
1913 ok(
equal,
"Got unexpected ccw %.8e.\n", got);
1915 got = D3DXVec2CCW(
NULL, &
v);
1917 ok(
equal,
"Got unexpected ccw %.8e.\n", got);
1920 ok(
equal,
"Got unexpected ccw %.8e.\n", got);
1923 got = D3DXVec2Dot(&
u, &
v);
1925 ok(
equal,
"Got unexpected dot %.8e.\n", got);
1927 got = D3DXVec2Dot(
NULL, &
v);
1929 ok(
equal,
"Got unexpected dot %.8e.\n", got);
1932 ok(
equal,
"Got unexpected dot %.8e.\n", got);
1935 expectedvec.
x = 2604.625f; expectedvec.
y = -4533.0f;
1940 got = D3DXVec2Length(&
u);
1942 ok(
equal,
"Got unexpected length %.8e.\n", got);
1944 got = D3DXVec2Length(
NULL);
1946 ok(
equal,
"Got unexpected length %.8e.\n", got);
1949 got = D3DXVec2LengthSq(&
u);
1951 ok(
equal,
"Got unexpected length %.8e.\n", got);
1953 got = D3DXVec2LengthSq(
NULL);
1955 ok(
equal,
"Got unexpected length %.8e.\n", got);
1958 expectedvec.
x = 68.0f; expectedvec.
y = -28.5f;
1959 D3DXVec2Lerp(&gotvec, &
u, &
v,
scale);
1962 funcpointer = D3DXVec2Lerp(&gotvec,
NULL,&
v,
scale);
1963 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1965 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1968 expectedvec.
x = 3.0f; expectedvec.
y = 9.0f;
1969 D3DXVec2Maximize(&gotvec, &
u, &
v);
1972 funcpointer = D3DXVec2Maximize(&gotvec,
NULL,&
v);
1973 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1975 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1978 expectedvec.
x = -7.0f; expectedvec.
y = 4.0f;
1979 D3DXVec2Minimize(&gotvec,&
u,&
v);
1982 funcpointer = D3DXVec2Minimize(&gotvec,
NULL,&
v);
1983 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1985 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
1988 expectedvec.
x = 0.6f; expectedvec.
y = 0.8f;
1992 expectedvec.
x = 0.0f; expectedvec.
y = 0.0f;
1997 expectedvec.
x = -19.5f; expectedvec.
y = -26.0f;
1998 D3DXVec2Scale(&gotvec,&
u,
scale);
2001 funcpointer = D3DXVec2Scale(&gotvec,
NULL,
scale);
2002 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2004 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2007 expectedvec.
x = 10.0f; expectedvec.
y = -5.0f;
2008 D3DXVec2Subtract(&gotvec, &
u, &
v);
2011 funcpointer = D3DXVec2Subtract(&gotvec,
NULL,&
v);
2012 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2014 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2017 expectedtrans.
x = 36.0f; expectedtrans.
y = 44.0f; expectedtrans.
z = 52.0f; expectedtrans.
w = 60.0f;
2020 gottrans.
x =
u.x; gottrans.
y =
u.y;
2025 expectedvec.
x = 0.6f; expectedvec.
y = 11.0f/15.0f;
2028 gotvec.
x =
u.x; gotvec.
y =
u.y;
2033 expectedvec.
x = 23.0f; expectedvec.
y = 30.0f;
2045 float coeff1, coeff2, got,
scale;
2048 nul.
x = 0.0f; nul.
y = 0.0f; nul.
z = 0.0f;
2049 u.x = 9.0f;
u.y = 6.0f;
u.z = 2.0f;
2050 v.x = 2.0f;
v.y = -3.0f;
v.z = -4.0;
2051 w.x = 3.0f;
w.y = -5.0f;
w.z = 7.0f;
2052 x.x = 4.0f;
x.y = 1.0f;
x.z = 11.0f;
2054 viewport.
Width = 800; viewport.
MinZ = 0.2f; viewport.
X = 10;
2055 viewport.
Height = 680; viewport.
MaxZ = 0.9f; viewport.
Y = 5;
2058 1.0
f, 2.0
f, 3.0
f, 4.0
f,
2059 5.0
f, 6.0
f, 7.0
f, 8.0
f,
2060 9.0
f, 10.0
f, 11.0
f, 12.0
f,
2061 13.0
f, 14.0
f, 15.0
f, 16.0
f);
2063 U(
view).m[0][1] = 5.0f;
U(
view).m[0][2] = 7.0f;
U(
view).m[0][3] = 8.0f;
2064 U(
view).m[1][0] = 11.0f;
U(
view).m[1][2] = 16.0f;
U(
view).m[1][3] = 33.0f;
2065 U(
view).m[2][0] = 19.0f;
U(
view).m[2][1] = -21.0f;
U(
view).m[2][3] = 43.0f;
2066 U(
view).m[3][0] = 2.0f;
U(
view).m[3][1] = 3.0f;
U(
view).m[3][2] = -4.0f;
2067 U(
view).m[0][0] = 10.0f;
U(
view).m[1][1] = 20.0f;
U(
view).m[2][2] = 30.0f;
2068 U(
view).m[3][3] = -40.0f;
2071 21.0
f, 2.0
f, 3.0
f, 4.0
f,
2072 5.0
f, 23.0
f, 7.0
f, 8.0
f,
2073 -8.0
f, -7.0
f, 25.0
f, -5.0
f,
2074 -4.0
f, -3.0
f, -2.0
f, 27.0
f);
2076 coeff1 = 2.0f; coeff2 = 5.0f;
2080 expectedvec.
x = 11.0f; expectedvec.
y = 3.0f; expectedvec.
z = -2.0f;
2081 D3DXVec3Add(&gotvec,&
u,&
v);
2084 funcpointer = D3DXVec3Add(&gotvec,
NULL,&
v);
2085 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2087 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2090 expectedvec.
x = -35.0f; expectedvec.
y = -67.0; expectedvec.
z = 15.0f;
2095 expectedvec.
x = 1458.0f; expectedvec.
y = 22.1875f; expectedvec.
z = 4141.375f;
2100 expectedvec.
x = -18.0f; expectedvec.
y = 40.0f; expectedvec.
z = -39.0f;
2101 D3DXVec3Cross(&gotvec,&
u,&
v);
2103 expectedvec.
x = -277.0f; expectedvec.
y = -150.0f; expectedvec.
z = -26.0f;
2104 D3DXVec3Cross(&gotvec,&gotvec,&
v);
2107 funcpointer = D3DXVec3Cross(&gotvec,
NULL,&
v);
2108 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2110 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2113 got = D3DXVec3Dot(&
u, &
v);
2115 ok(
equal,
"Got unexpected dot %.8e.\n", got);
2117 got = D3DXVec3Dot(
NULL, &
v);
2119 ok(
equal,
"Got unexpected dot %.8e.\n", got);
2122 ok(
equal,
"Got unexpected dot %.8e.\n", got);
2125 expectedvec.
x = -6045.75f; expectedvec.
y = -6650.0f; expectedvec.
z = 1358.875f;
2130 got = D3DXVec3Length(&
u);
2132 ok(
equal,
"Got unexpected length %.8e.\n", got);
2134 got = D3DXVec3Length(
NULL);
2136 ok(
equal,
"Got unexpected length %.8e.\n", got);
2139 got = D3DXVec3LengthSq(&
u);
2141 ok(
equal,
"Got unexpected length %.8e.\n", got);
2143 got = D3DXVec3LengthSq(
NULL);
2145 ok(
equal,
"Got unexpected length %.8e.\n", got);
2148 expectedvec.
x = 54.5f; expectedvec.
y = 64.5f, expectedvec.
z = 41.0f ;
2149 D3DXVec3Lerp(&gotvec,&
u,&
v,
scale);
2152 funcpointer = D3DXVec3Lerp(&gotvec,
NULL,&
v,
scale);
2153 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2155 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2158 expectedvec.
x = 9.0f; expectedvec.
y = 6.0f; expectedvec.
z = 2.0f;
2159 D3DXVec3Maximize(&gotvec,&
u,&
v);
2162 funcpointer = D3DXVec3Maximize(&gotvec,
NULL,&
v);
2163 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2165 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2168 expectedvec.
x = 2.0f; expectedvec.
y = -3.0f; expectedvec.
z = -4.0f;
2169 D3DXVec3Minimize(&gotvec,&
u,&
v);
2172 funcpointer = D3DXVec3Minimize(&gotvec,
NULL,&
v);
2173 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2175 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2178 expectedvec.
x = 9.0f/11.0f; expectedvec.
y = 6.0f/11.0f; expectedvec.
z = 2.0f/11.0f;
2182 expectedvec.
x = 0.0f; expectedvec.
y = 0.0f; expectedvec.
z = 0.0f;
2187 expectedvec.
x = -58.5f; expectedvec.
y = -39.0f; expectedvec.
z = -13.0f;
2188 D3DXVec3Scale(&gotvec,&
u,
scale);
2191 funcpointer = D3DXVec3Scale(&gotvec,
NULL,
scale);
2192 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2194 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2197 expectedvec.
x = 7.0f; expectedvec.
y = 9.0f; expectedvec.
z = 6.0f;
2198 D3DXVec3Subtract(&gotvec,&
u,&
v);
2201 funcpointer = D3DXVec3Subtract(&gotvec,
NULL,&
v);
2202 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2204 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2207 expectedtrans.
x = 70.0f; expectedtrans.
y = 88.0f; expectedtrans.
z = 106.0f; expectedtrans.
w = 124.0f;
2211 gottrans.
x =
u.x; gottrans.
y =
u.y; gottrans.
z =
u.z;
2216 expectedvec.
x = 70.0f/124.0f; expectedvec.
y = 88.0f/124.0f; expectedvec.
z = 106.0f/124.0f;
2221 expectedvec.
x = 57.0f; expectedvec.
y = 74.0f; expectedvec.
z = 91.0f;
2226 expectedvec.
x = 1135.721924f; expectedvec.
y = 147.086914f; expectedvec.
z = 0.153412f;
2243 expectedvec.
x = 4010.000000f; expectedvec.
y = -1695.000000f; expectedvec.
z = 1.600000f;
2247 expectedvec.
x = 1.814305f; expectedvec.
y = 0.582097f; expectedvec.
z = -0.066555f;
2252 expectedvec.
x = -2.913411f; expectedvec.
y = 1.593215f; expectedvec.
z = 0.380724f;
2269 expectedvec.
x = -1.002500f; expectedvec.
y = 0.997059f; expectedvec.
z = 2.571429f;
2273 expectedvec.
x = -11.018396f; expectedvec.
y = 3.218991f; expectedvec.
z = 1.380329f;
2283 float coeff1, coeff2, got,
scale;
2287 u.x = 1.0f;
u.y = 2.0f;
u.z = 4.0f;
u.w = 10.0;
2288 v.x = -3.0f;
v.y = 4.0f;
v.z = -5.0f;
v.w = 7.0;
2289 w.x = 4.0f;
w.y =6.0f;
w.z = -2.0f;
w.w = 1.0f;
2290 x.x = 6.0f;
x.y = -7.0f;
x.z =8.0f;
x.w = -9.0f;
2293 1.0
f, 2.0
f, 3.0
f, 4.0
f,
2294 5.0
f, 6.0
f, 7.0
f, 8.0
f,
2295 9.0
f, 10.0
f, 11.0
f, 12.0
f,
2296 13.0
f, 14.0
f, 15.0
f, 16.0
f);
2298 coeff1 = 2.0f; coeff2 = 5.0;
2302 expectedvec.
x = -2.0f; expectedvec.
y = 6.0f; expectedvec.
z = -1.0f; expectedvec.
w = 17.0f;
2303 D3DXVec4Add(&gotvec,&
u,&
v);
2306 funcpointer = D3DXVec4Add(&gotvec,
NULL,&
v);
2307 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2309 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2312 expectedvec.
x = 8.0f; expectedvec.
y = 26.0; expectedvec.
z = -44.0f; expectedvec.
w = -41.0f;
2317 expectedvec.
x = 2754.625f; expectedvec.
y = 2367.5625f; expectedvec.
z = 1060.1875f; expectedvec.
w = 131.3125f;
2322 expectedvec.
x = 390.0f; expectedvec.
y = -393.0f; expectedvec.
z = -316.0f; expectedvec.
w = 166.0f;
2327 got = D3DXVec4Dot(&
u, &
v);
2329 ok(
equal,
"Got unexpected dot %.8e.\n", got);
2331 got = D3DXVec4Dot(
NULL, &
v);
2333 ok(
equal,
"Got unexpected dot %.8e.\n", got);
2336 ok(
equal,
"Got unexpected dot %.8e.\n", got);
2339 expectedvec.
x = 1224.625f; expectedvec.
y = 3461.625f; expectedvec.
z = -4758.875f; expectedvec.
w = -5781.5f;
2344 got = D3DXVec4Length(&
u);
2346 ok(
equal,
"Got unexpected length %.8e.\n", got);
2348 got = D3DXVec4Length(
NULL);
2350 ok(
equal,
"Got unexpected length %.8e.\n", got);
2353 got = D3DXVec4LengthSq(&
u);
2355 ok(
equal,
"Got unexpected length %.8e.\n", got);
2357 got = D3DXVec4LengthSq(
NULL);
2359 ok(
equal,
"Got unexpected length %.8e.\n", got);
2362 expectedvec.
x = 27.0f; expectedvec.
y = -11.0f; expectedvec.
z = 62.5; expectedvec.
w = 29.5;
2363 D3DXVec4Lerp(&gotvec,&
u,&
v,
scale);
2366 funcpointer = D3DXVec4Lerp(&gotvec,
NULL,&
v,
scale);
2367 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2369 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2372 expectedvec.
x = 1.0f; expectedvec.
y = 4.0f; expectedvec.
z = 4.0f; expectedvec.
w = 10.0;
2373 D3DXVec4Maximize(&gotvec,&
u,&
v);
2376 funcpointer = D3DXVec4Maximize(&gotvec,
NULL,&
v);
2377 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2379 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2382 expectedvec.
x = -3.0f; expectedvec.
y = 2.0f; expectedvec.
z = -5.0f; expectedvec.
w = 7.0;
2383 D3DXVec4Minimize(&gotvec,&
u,&
v);
2386 funcpointer = D3DXVec4Minimize(&gotvec,
NULL,&
v);
2387 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2389 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2392 expectedvec.
x = 1.0f/11.0f; expectedvec.
y = 2.0f/11.0f; expectedvec.
z = 4.0f/11.0f; expectedvec.
w = 10.0f/11.0f;
2397 expectedvec.
x = -6.5f; expectedvec.
y = -13.0f; expectedvec.
z = -26.0f; expectedvec.
w = -65.0f;
2398 D3DXVec4Scale(&gotvec,&
u,
scale);
2401 funcpointer = D3DXVec4Scale(&gotvec,
NULL,
scale);
2402 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2404 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2407 expectedvec.
x = 4.0f; expectedvec.
y = -2.0f; expectedvec.
z = 9.0f; expectedvec.
w = 3.0f;
2408 D3DXVec4Subtract(&gotvec,&
u,&
v);
2411 funcpointer = D3DXVec4Subtract(&gotvec,
NULL,&
v);
2412 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2414 ok(funcpointer ==
NULL,
"Expected: %p, Got: %p\n",
NULL, funcpointer);
2417 expectedtrans.
x = 177.0f; expectedtrans.
y = 194.0f; expectedtrans.
z = 211.0f; expectedtrans.
w = 228.0f;
2424 ID3DXMatrixStack *
stack;
2429 1.0f, 2.0f, 3.0f, 4.0f,
2430 5.0f, 6.0f, 7.0f, 8.0f,
2431 9.0f, 10.0f, 11.0f, 12.0f,
2432 13.0f, 14.0f, 15.0f, 16.0f
2436 17.0f, 18.0f, 19.0f, 20.0f,
2437 21.0f, 22.0f, 23.0f, 24.0f,
2438 25.0f, 26.0f, 27.0f, 28.0f,
2439 29.0f, 30.0f, 31.0f, 32.0f
2447 "The top of an empty matrix stack should be an identity matrix\n");
2496 ok(!refcount,
"Matrix stack has %u references left.\n", refcount);
2515 U(exp_mat).m[0][0] = 10.0f;
2516 U(exp_mat).m[1][0] = -17.320507f;
2517 U(exp_mat).m[2][0] = 0.0f;
2518 U(exp_mat).m[3][0] = -1.035898f;
2519 U(exp_mat).m[0][1] = 17.320507f;
2520 U(exp_mat).m[1][1] = 10.0f;
2521 U(exp_mat).m[2][1] = 0.0f;
2522 U(exp_mat).m[3][1] = 6.401924f;
2523 U(exp_mat).m[0][2] = 0.0f;
2524 U(exp_mat).m[1][2] = 0.0f;
2525 U(exp_mat).m[2][2] = 1.0f;
2526 U(exp_mat).m[3][2] = 0.0f;
2527 U(exp_mat).m[0][3] = 0.0f;
2528 U(exp_mat).m[1][3] = 0.0f;
2529 U(exp_mat).m[2][3] = 0.0f;
2530 U(exp_mat).m[3][3] = 1.0f;
2544 U(exp_mat).m[0][0] = 10.0f;
2545 U(exp_mat).m[1][0] = -17.320507f;
2546 U(exp_mat).m[2][0] = 0.0f;
2547 U(exp_mat).m[3][0] = 4.964102f;
2548 U(exp_mat).m[0][1] = 17.320507f;
2549 U(exp_mat).m[1][1] = 10.0f;
2550 U(exp_mat).m[2][1] = 0.0f;
2551 U(exp_mat).m[3][1] = -0.598076f;
2552 U(exp_mat).m[0][2] = 0.0f;
2553 U(exp_mat).m[1][2] = 0.0f;
2554 U(exp_mat).m[2][2] = 1.0f;
2555 U(exp_mat).m[3][2] = 0.0f;
2556 U(exp_mat).m[0][3] = 0.0f;
2557 U(exp_mat).m[1][3] = 0.0f;
2558 U(exp_mat).m[2][3] = 0.0f;
2559 U(exp_mat).m[3][3] = 1.0f;
2573 U(exp_mat).m[0][0] = 10.0f;
2574 U(exp_mat).m[1][0] = -17.320507f;
2575 U(exp_mat).m[2][0] = 0.0f;
2576 U(exp_mat).m[3][0] = -6.0f;
2577 U(exp_mat).m[0][1] = 17.320507f;
2578 U(exp_mat).m[1][1] = 10.0f;
2579 U(exp_mat).m[2][1] = 0.0f;
2580 U(exp_mat).m[3][1] = 7.0f;
2581 U(exp_mat).m[0][2] = 0.0f;
2582 U(exp_mat).m[1][2] = 0.0f;
2583 U(exp_mat).m[2][2] = 1.0f;
2584 U(exp_mat).m[3][2] = 0.0f;
2585 U(exp_mat).m[0][3] = 0.0f;
2586 U(exp_mat).m[1][3] = 0.0f;
2587 U(exp_mat).m[2][3] = 0.0f;
2588 U(exp_mat).m[3][3] = 1.0f;
2599 U(exp_mat).m[0][0] = 14.142133f;
2600 U(exp_mat).m[1][0] = -14.142133f;
2601 U(exp_mat).m[2][0] = 0.0f;
2602 U(exp_mat).m[3][0] = 0.0f;
2603 U(exp_mat).m[0][1] = 14.142133;
2604 U(exp_mat).m[1][1] = 14.142133f;
2605 U(exp_mat).m[2][1] = 0.0f;
2606 U(exp_mat).m[3][1] = 0.0f;
2607 U(exp_mat).m[0][2] = 0.0f;
2608 U(exp_mat).m[1][2] = 0.0f;
2609 U(exp_mat).m[2][2] = 1.0f;
2610 U(exp_mat).m[3][2] = 0.0f;
2611 U(exp_mat).m[0][3] = 0.0f;
2612 U(exp_mat).m[1][3] = 0.0f;
2613 U(exp_mat).m[2][3] = 0.0f;
2614 U(exp_mat).m[3][3] = 1.0f;
2624 D3DXVECTOR3 exp_scale, got_scale, exp_translation, got_translation;
2630 U(
pm).m[0][0] = -9.23879206e-01
f;
2631 U(
pm).m[1][0] = -2.70598412e-01
f;
2632 U(
pm).m[2][0] = 2.70598441e-01
f;
2633 U(
pm).m[3][0] = -5.00000000e+00
f;
2634 U(
pm).m[0][1] = 2.70598471e-01
f;
2635 U(
pm).m[1][1] = 3.80604863e-02
f;
2636 U(
pm).m[2][1] = 9.61939573e-01
f;
2637 U(
pm).m[3][1] = 0.00000000e+00
f;
2638 U(
pm).m[0][2] = -2.70598441e-01
f;
2639 U(
pm).m[1][2] = 9.61939573e-01
f;
2640 U(
pm).m[2][2] = 3.80603075e-02
f;
2641 U(
pm).m[3][2] = 1.00000000e+01
f;
2642 U(
pm).m[0][3] = 0.00000000e+00
f;
2643 U(
pm).m[1][3] = 0.00000000e+00
f;
2644 U(
pm).m[2][3] = 0.00000000e+00
f;
2645 U(
pm).m[3][3] = 1.00000000e+00
f;
2647 exp_scale.
x = 9.99999881e-01
f;
2648 exp_scale.
y = 9.99999881e-01
f;
2649 exp_scale.
z = 9.99999881e-01
f;
2651 exp_rotation.
x = 2.14862776e-08
f;
2652 exp_rotation.
y = 6.93519890e-01
f;
2653 exp_rotation.
z = 6.93519890e-01
f;
2654 exp_rotation.
w = 1.95090637e-01
f;
2656 exp_translation.
x = -5.0f;
2657 exp_translation.
y = 0.0f;
2658 exp_translation.
z = 10.0f;
2663 expect_vec3(&exp_translation, &got_translation, 0);
2667 U(
pm).m[0][0] = -2.255813f;
2668 U(
pm).m[1][0] = 1.302324f;
2669 U(
pm).m[2][0] = 1.488373f;
2670 U(
pm).m[3][0] = 1.0f;
2671 U(
pm).m[0][1] = 1.302327f;
2672 U(
pm).m[1][1] = -0.7209296f;
2673 U(
pm).m[2][1] = 2.60465f;
2674 U(
pm).m[3][1] = 2.0f;
2675 U(
pm).m[0][2] = 1.488371f;
2676 U(
pm).m[1][2] = 2.604651f;
2677 U(
pm).m[2][2] = -0.02325551f;
2678 U(
pm).m[3][2] = 3.0f;
2679 U(
pm).m[0][3] = 0.0f;
2680 U(
pm).m[1][3] = 0.0f;
2681 U(
pm).m[2][3] = 0.0f;
2682 U(
pm).m[3][3] = 1.0f;
2684 exp_scale.
x = 2.99999928e+00
f;
2685 exp_scale.
y = 2.99999905e+00
f;
2686 exp_scale.
z = 2.99999952e+00
f;
2688 exp_rotation.
x = 3.52180451e-01
f;
2689 exp_rotation.
y = 6.16315663e-01
f;
2690 exp_rotation.
z = 7.04360664e-01
f;
2691 exp_rotation.
w = 3.38489343e-07
f;
2693 exp_translation.
x = 1.0f;
2694 exp_translation.
y = 2.0f;
2695 exp_translation.
z = 3.0f;
2700 expect_vec3(&exp_translation, &got_translation, 0);
2704 U(
pm).m[0][0] = 2.427051f;
2705 U(
pm).m[1][0] = 0.0f;
2706 U(
pm).m[2][0] = 1.763355f;
2707 U(
pm).m[3][0] = 5.0f;
2708 U(
pm).m[0][1] = 0.0f;
2709 U(
pm).m[1][1] = 3.0f;
2710 U(
pm).m[2][1] = 0.0f;
2711 U(
pm).m[3][1] = 5.0f;
2712 U(
pm).m[0][2] = -1.763355f;
2713 U(
pm).m[1][2] = 0.0f;
2714 U(
pm).m[2][2] = 2.427051f;
2715 U(
pm).m[3][2] = 5.0f;
2716 U(
pm).m[0][3] = 0.0f;
2717 U(
pm).m[1][3] = 0.0f;
2718 U(
pm).m[2][3] = 0.0f;
2719 U(
pm).m[3][3] = 1.0f;
2721 exp_scale.
x = 2.99999976e+00
f;
2722 exp_scale.
y = 3.00000000e+00
f;
2723 exp_scale.
z = 2.99999976e+00
f;
2725 exp_rotation.
x = 0.00000000e+00
f;
2726 exp_rotation.
y = 3.09016883e-01
f;
2727 exp_rotation.
z = 0.00000000e+00
f;
2728 exp_rotation.
w = 9.51056540e-01
f;
2730 exp_translation.
x = 5.0f;
2731 exp_translation.
y = 5.0f;
2732 exp_translation.
z = 5.0f;
2737 expect_vec3(&exp_translation, &got_translation, 0);
2741 U(
pm).m[0][0] = -9.23879206e-01
f;
2742 U(
pm).m[1][0] = -2.70598412e-01
f;
2743 U(
pm).m[2][0] = 2.70598441e-01
f;
2744 U(
pm).m[3][0] = -5.00000000e+00
f;
2745 U(
pm).m[0][1] = 2.70598471e-01
f;
2746 U(
pm).m[1][1] = 3.80604863e-02
f;
2747 U(
pm).m[2][1] = 9.61939573e-01
f;
2748 U(
pm).m[3][1] = 0.00000000e+00
f;
2749 U(
pm).m[0][2] = -2.70598441e-01
f;
2750 U(
pm).m[1][2] = 9.61939573e-01
f;
2751 U(
pm).m[2][2] = 3.80603075e-02
f;
2752 U(
pm).m[3][2] = 1.00000000e+01
f;
2753 U(
pm).m[0][3] = 0.00000000e+00
f;
2754 U(
pm).m[1][3] = 0.00000000e+00
f;
2755 U(
pm).m[2][3] = 0.00000000e+00
f;
2756 U(
pm).m[3][3] = 1.00000000e+00
f;
2758 exp_scale.
x = 9.99999881e-01
f;
2759 exp_scale.
y = 9.99999881e-01
f;
2760 exp_scale.
z = 9.99999881e-01
f;
2762 exp_rotation.
x = 2.14862776e-08
f;
2763 exp_rotation.
y = 6.93519890e-01
f;
2764 exp_rotation.
z = 6.93519890e-01
f;
2765 exp_rotation.
w = 1.95090637e-01
f;
2767 exp_translation.
x = -5.0f;
2768 exp_translation.
y = 0.0f;
2769 exp_translation.
z = 10.0f;
2774 expect_vec3(&exp_translation, &got_translation, 0);
2778 U(
pm).m[0][0] = -9.23878908e-01
f;
2779 U(
pm).m[1][0] = -5.41196704e-01
f;
2780 U(
pm).m[2][0] = 8.11795175e-01
f;
2781 U(
pm).m[3][0] = -5.00000000e+00
f;
2782 U(
pm).m[0][1] = 2.70598322e-01
f;
2783 U(
pm).m[1][1] = 7.61209577e-02
f;
2784 U(
pm).m[2][1] = 2.88581824e+00
f;
2785 U(
pm).m[3][1] = 0.00000000e+00
f;
2786 U(
pm).m[0][2] = -2.70598352e-01
f;
2787 U(
pm).m[1][2] = 1.92387879e+00
f;
2788 U(
pm).m[2][2] = 1.14180908e-01
f;
2789 U(
pm).m[3][2] = 1.00000000e+01
f;
2790 U(
pm).m[0][3] = 0.00000000e+00
f;
2791 U(
pm).m[1][3] = 0.00000000e+00
f;
2792 U(
pm).m[2][3] = 0.00000000e+00
f;
2793 U(
pm).m[3][3] = 1.00000000e+00
f;
2795 exp_scale.
x = 9.99999583e-01
f;
2796 exp_scale.
y = 1.99999940e+00
f;
2797 exp_scale.
z = 2.99999928e+00
f;
2799 exp_rotation.
x = 1.07431388e-08
f;
2800 exp_rotation.
y = 6.93519890e-01
f;
2801 exp_rotation.
z = 6.93519831e-01
f;
2802 exp_rotation.
w = 1.95090622e-01
f;
2804 exp_translation.
x = -5.0f;
2805 exp_translation.
y = 0.0f;
2806 exp_translation.
z = 10.0f;
2811 exp_rotation.
x = 0.0f;
2813 ok(
equal,
"Got unexpected quaternion {%.8e, %.8e, %.8e, %.8e}.\n",
2814 got_rotation.
x, got_rotation.
y, got_rotation.
z, got_rotation.
w);
2815 expect_vec3(&exp_translation, &got_translation, 0);
2819 U(
pm).m[0][0] = 0.7156004f;
2820 U(
pm).m[1][0] = -0.5098283f;
2821 U(
pm).m[2][0] = -0.4774843f;
2822 U(
pm).m[3][0] = -5.0f;
2823 U(
pm).m[0][1] = -0.6612288f;
2824 U(
pm).m[1][1] = -0.7147621f;
2825 U(
pm).m[2][1] = -0.2277977f;
2826 U(
pm).m[3][1] = 0.0f;
2827 U(
pm).m[0][2] = -0.2251499f;
2828 U(
pm).m[1][2] = 0.4787385f;
2829 U(
pm).m[2][2] = -0.8485972f;
2830 U(
pm).m[3][2] = 10.0f;
2831 U(
pm).m[0][3] = 0.0f;
2832 U(
pm).m[1][3] = 0.0f;
2833 U(
pm).m[2][3] = 0.0f;
2834 U(
pm).m[3][3] = 1.0f;
2836 exp_scale.
x = 9.99999940e-01
f;
2837 exp_scale.
y = 1.00000012e+00
f;
2838 exp_scale.
z = 1.00000012e+00
f;
2840 exp_rotation.
x = 9.05394852e-01
f;
2841 exp_rotation.
y = -3.23355347e-01
f;
2842 exp_rotation.
z = -1.94013178e-01
f;
2843 exp_rotation.
w = 1.95090592e-01
f;
2845 exp_translation.
x = -5.0f;
2846 exp_translation.
y = 0.0f;
2847 exp_translation.
z = 10.0f;
2852 expect_vec3(&exp_translation, &got_translation, 0);
2856 U(
pm).m[0][0] = 0.06554436f;
2857 U(
pm).m[1][0] = -0.6873012f;
2858 U(
pm).m[2][0] = 0.7234092f;
2859 U(
pm).m[3][0] = -5.0f;
2860 U(
pm).m[0][1] = -0.9617381f;
2861 U(
pm).m[1][1] = -0.2367795f;
2862 U(
pm).m[2][1] = -0.1378230f;
2863 U(
pm).m[3][1] = 0.0f;
2864 U(
pm).m[0][2] = 0.2660144f;
2865 U(
pm).m[1][2] = -0.6866967f;
2866 U(
pm).m[2][2] = -0.6765233f;
2867 U(
pm).m[3][2] = 10.0f;
2868 U(
pm).m[0][3] = 0.0f;
2869 U(
pm).m[1][3] = 0.0f;
2870 U(
pm).m[2][3] = 0.0f;
2871 U(
pm).m[3][3] = 1.0f;
2873 exp_scale.
x = 9.99999940e-01
f;
2874 exp_scale.
y = 9.99999940e-01
f;
2875 exp_scale.
z = 9.99999881e-01
f;
2877 exp_rotation.
x = 7.03357518e-01
f;
2878 exp_rotation.
y = -5.86131275e-01
f;
2879 exp_rotation.
z = 3.51