[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Toon-members] TooN so3.h
From: |
Tom Drummond |
Subject: |
[Toon-members] TooN so3.h |
Date: |
Tue, 07 Apr 2009 02:44:24 +0000 |
CVSROOT: /cvsroot/toon
Module name: TooN
Changes by: Tom Drummond <twd20> 09/04/07 02:44:24
Modified files:
. : so3.h
Log message:
added magic comment to make emacs use c++-mode
added coerce to constructor from matrix
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/so3.h?cvsroot=toon&r1=1.27&r2=1.28
Patches:
Index: so3.h
===================================================================
RCS file: /cvsroot/toon/TooN/so3.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- so3.h 7 Apr 2009 02:14:33 -0000 1.27
+++ so3.h 7 Apr 2009 02:44:24 -0000 1.28
@@ -1,4 +1,4 @@
-
+// -*- c++ -*-
/*
Copyright (C) 2005 Tom Drummond
@@ -46,7 +46,7 @@
SO3(const Vector<S, P, A> & v) { *this = exp(v); }
template <int R, int C, typename P, typename A>
- SO3(const Matrix<R,C,P,A>& rhs) { *this = rhs; }
+ SO3(const Matrix<R,C,P,A>& rhs) { *this = rhs; coerce();}
template <int R, int C, typename P, typename A>
SO3& operator=(const Matrix<R,C,P,A> & rhs) {