]> git.mxchange.org Git - simgear.git/blobdiff - simgear/math/SGMatrix.hxx
Ignore generated binaries.
[simgear.git] / simgear / math / SGMatrix.hxx
index 3e5628c45e4313ca8812300a87f028e934e9756c..a9065faa69185e79ec353ef4cb14551c97d5d6e6 100644 (file)
@@ -1,3 +1,21 @@
+// Copyright (C) 2006  Mathias Froehlich - Mathias.Froehlich@web.de
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Library General Public
+// License as published by the Free Software Foundation; either
+// version 2 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Library General Public License for more details.
+//
+// You should have received a copy of the GNU Library General Public
+// License along with this library; if not, write to the
+// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+// Boston, MA  02111-1307, USA.
+//
+
 #ifndef SGMatrix_H
 #define SGMatrix_H
 
@@ -562,10 +580,10 @@ inline
 SGMatrixf
 toMatrixf(const SGMatrixd& m)
 {
-  return SGMatrixf(m(0,0), m(0,1), m(0,2), m(0,3),
-                   m(1,0), m(1,1), m(1,2), m(1,3),
-                   m(3,0), m(2,1), m(2,2), m(2,3),
-                   m(4,0), m(4,1), m(4,2), m(4,3));
+  return SGMatrixf((float)m(0,0), (float)m(0,1), (float)m(0,2), (float)m(0,3),
+                   (float)m(1,0), (float)m(1,1), (float)m(1,2), (float)m(1,3),
+                   (float)m(3,0), (float)m(2,1), (float)m(2,2), (float)m(2,3),
+                   (float)m(4,0), (float)m(4,1), (float)m(4,2), (float)m(4,3));
 }
 
 inline