[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Toon-members] TooN/doc documentation.h
From: |
Tom Drummond |
Subject: |
[Toon-members] TooN/doc documentation.h |
Date: |
Fri, 07 Jul 2006 14:20:55 +0000 |
CVSROOT: /cvsroot/toon
Module name: TooN
Changes by: Tom Drummond <twd20> 06/07/07 14:20:55
Modified files:
doc : documentation.h
Log message:
example of vector output added
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/doc/documentation.h?cvsroot=toon&r1=1.5&r2=1.6
Patches:
Index: documentation.h
===================================================================
RCS file: /cvsroot/toon/TooN/doc/documentation.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- documentation.h 7 Jul 2006 13:53:34 -0000 1.5
+++ documentation.h 7 Jul 2006 14:20:55 -0000 1.6
@@ -70,6 +70,11 @@
double dot = a*b; // Dot product
Matrix<3,3> outer = a.as_col() * b.as_row(); // Outer product
Vector<3> cross = a ^ b; // Cross product
+
+cout << "a:" << endl << a << endl;
+cout << "b:" << endl << b << endl;
+cout << "Outer:" << endl << outer << endl;
+cout << "Cross:" << endl << cross << endl;
@endcode
Create a vector and a matrix and multiply the two together