Subversion Repositories gelsvn

Rev

Rev 408 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 408 Rev 595
Line -... Line 1...
-
 
1
/* ----------------------------------------------------------------------- *
-
 
2
 * This file is part of GEL, http://www.imm.dtu.dk/GEL
-
 
3
 * Copyright (C) the authors and DTU Informatics
-
 
4
 * For license and list of authors, see ../../doc/intro.pdf
-
 
5
 * ----------------------------------------------------------------------- */
-
 
6
 
1
#include "Mat4x4d.h"
7
#include "Mat4x4d.h"
2
 
8
 
3
namespace CGLA 
9
namespace CGLA 
4
{
10
{
5
 
11
 
Line 36... Line 42...
36
      }
42
      }
37
 
43
 
38
    return m;
44
    return m;
39
  }
45
  }
40
 
46
 
41
  Mat4x4d translation_Mat4x4d(const Vec3f& v)
47
  Mat4x4d translation_Mat4x4d(const Vec3d& v)
42
  {
48
  {
43
    Mat4x4d m(0.0);
49
    Mat4x4d m(0.0);
44
 
50
 
45
    m[0][0] = 1.0;
51
    m[0][0] = 1.0;
46
    m[1][1] = 1.0;
52
    m[1][1] = 1.0;
Line 52... Line 58...
52
    m[2][3] = v[2];
58
    m[2][3] = v[2];
53
  
59
  
54
    return m;
60
    return m;
55
  }
61
  }
56
 
62
 
57
  Mat4x4d scaling_Mat4x4d(const Vec3f& v)
63
  Mat4x4d scaling_Mat4x4d(const Vec3d& v)
58
  {
64
  {
59
    Mat4x4d m(0.0);
65
    Mat4x4d m(0.0);
60
 
66
 
61
    m[0][0] = v[0];
67
    m[0][0] = v[0];
62
    m[1][1] = v[1];
68
    m[1][1] = v[1];