Subversion Repositories gelsvn

Rev

Rev 53 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 53 Rev 55
Line 48... Line 48...
48
 
48
 
49
  // Constructors
49
  // Constructors
50
 
50
 
51
  {
51
  {
52
    Vec2d x1;
52
    Vec2d x1;
53
    success += _isnan(x1[0]) && _isnan(x1[1]);
53
    success += CGLA::isnan(x1[0]) && CGLA::isnan(x1[1]);
54
 
54
 
55
    double xi1 = my_random(), xi2 = my_random();
55
    double xi1 = my_random(), xi2 = my_random();
56
    Vec2d x2(xi1, xi2);
56
    Vec2d x2(xi1, xi2);
57
    success += x2[0] == xi1 && x2[1] == xi2;
57
    success += x2[0] == xi1 && x2[1] == xi2;
58
 
58
 
Line 353... Line 353...
353
 
353
 
354
  // Constructors
354
  // Constructors
355
 
355
 
356
  {
356
  {
357
    Vec2f x1;
357
    Vec2f x1;
358
    success += _isnan(x1[0]) && _isnan(x1[1]);
358
    success += CGLA::isnan(x1[0]) && CGLA::isnan(x1[1]);
359
 
359
 
360
    float xi1 = my_random(), xi2 = my_random();
360
    float xi1 = my_random(), xi2 = my_random();
361
    Vec2f x2(xi1, xi2);
361
    Vec2f x2(xi1, xi2);
362
    success += x2[0] == xi1 && x2[1] == xi2;
362
    success += x2[0] == xi1 && x2[1] == xi2;
363
 
363
 
Line 660... Line 660...
660
 
660
 
661
  {
661
  {
662
/* Vec2i default initialization ?
662
/* Vec2i default initialization ?
663
 *
663
 *
664
    Vec2i x1;
664
    Vec2i x1;
665
    success += _isnan(x1[0]) && _isnan(x1[1]);
665
    success += CGLA::isnan(x1[0]) && CGLA::isnan(x1[1]);
666
*/
666
*/
667
 
667
 
668
    int xi1 = rand(), xi2 = rand();
668
    int xi1 = rand(), xi2 = rand();
669
    Vec2i x2(xi1, xi2);
669
    Vec2i x2(xi1, xi2);
670
    success += x2[0] == xi1 && x2[1] == xi2;
670
    success += x2[0] == xi1 && x2[1] == xi2;
Line 933... Line 933...
933
 
933
 
934
  {
934
  {
935
/* Vec3i default initialization ?
935
/* Vec3i default initialization ?
936
 *
936
 *
937
    Vec3i x1;
937
    Vec3i x1;
938
    success += _isnan(x1[0]) && _isnan(x1[1]) && _isnan(x1[2]);
938
    success += CGLA::isnan(x1[0]) && CGLA::isnan(x1[1]) && CGLA::isnan(x1[2]);
939
*/
939
*/
940
 
940
 
941
    int xi1 = rand(), xi2 = rand(), xi3 = rand();
941
    int xi1 = rand(), xi2 = rand(), xi3 = rand();
942
    Vec3i x2(xi1, xi2, xi3);
942
    Vec3i x2(xi1, xi2, xi3);
943
    success += x2[0] == xi1 && x2[1] == xi2 && x2[2] == xi3;
943
    success += x2[0] == xi1 && x2[1] == xi2 && x2[2] == xi3;
Line 1226... Line 1226...
1226
 
1226
 
1227
  // Constructors
1227
  // Constructors
1228
 
1228
 
1229
  {
1229
  {
1230
    Vec3f x1;
1230
    Vec3f x1;
1231
    success += _isnan(x1[0]) && _isnan(x1[1]) && _isnan(x1[2]);
1231
    success += CGLA::isnan(x1[0]) && CGLA::isnan(x1[1]) && CGLA::isnan(x1[2]);
1232
 
1232
 
1233
    float xi1 = my_random(), xi2 = my_random(), xi3 = my_random();
1233
    float xi1 = my_random(), xi2 = my_random(), xi3 = my_random();
1234
    Vec3f x2(xi1, xi2, xi3);
1234
    Vec3f x2(xi1, xi2, xi3);
1235
    success += x2[0] == xi1 && x2[1] == xi2 && x2[2] == xi3;
1235
    success += x2[0] == xi1 && x2[1] == xi2 && x2[2] == xi3;
1236
 
1236
 
Line 1544... Line 1544...
1544
 
1544
 
1545
  // Constructors
1545
  // Constructors
1546
 
1546
 
1547
  {
1547
  {
1548
    Vec3d x1;
1548
    Vec3d x1;
1549
    success += _isnan(x1[0]) && _isnan(x1[1]) && _isnan(x1[2]);
1549
    success += CGLA::isnan(x1[0]) && CGLA::isnan(x1[1]) && CGLA::isnan(x1[2]);
1550
 
1550
 
1551
    double xi1 = my_random(), xi2 = my_random(), xi3 = my_random();
1551
    double xi1 = my_random(), xi2 = my_random(), xi3 = my_random();
1552
    Vec3d x2(xi1, xi2, xi3);
1552
    Vec3d x2(xi1, xi2, xi3);
1553
    success += x2[0] == xi1 && x2[1] == xi2 && x2[2] == xi3;
1553
    success += x2[0] == xi1 && x2[1] == xi2 && x2[2] == xi3;
1554
 
1554