Subversion Repositories gelsvn

Rev

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

Rev 89 Rev 501
Line 41... Line 41...
41
  Mat4x4d scaling_Mat4x4d(const Vec3d&);
41
  Mat4x4d scaling_Mat4x4d(const Vec3d&);
42
 
42
 
43
  /// Create an identity matrix.
43
  /// Create an identity matrix.
44
  inline Mat4x4d identity_Mat4x4d()
44
  inline Mat4x4d identity_Mat4x4d()
45
    {
45
    {
46
      return Mat4x4d(Vec4d(1,0,0,0), 
46
      return Mat4x4d(Vec4d(1.0,0.0,0.0,0.0), 
47
		     Vec4d(0,1,0,0), 
47
		     Vec4d(0.0,1.0,0.0,0.0), 
48
		     Vec4d(0,0,1,0), 
48
		     Vec4d(0.0,0.0,1.0,0.0), 
49
		     Vec4d(0,0,0,1));
49
		     Vec4d(0.0,0.0,0.0,1.0));
50
    }
50
    }
51
 
51
 
52
  /** Compute inverse assuming that the upper-left 3x3 sub-matrix is
52
  /** Compute inverse assuming that the upper-left 3x3 sub-matrix is
53
      orthonormal (which is the case if the transformation is only
53
      orthonormal (which is the case if the transformation is only
54
      a concatenation of rotations and translations).
54
      a concatenation of rotations and translations).