Points&Forces (survey)
Software tools facilitating the task of surveying architecture
test_a_wrench.cxx
Go to the documentation of this file.
1 /*
2 Copyright 2010-2011 Pierre SMARS (smars@yuntech.edu.tw)
3 This program is free software: you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation, either version 2 of the License, or
6 (at your option) any later version.
7 
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16 #include <iostream>
17 #include "a_wrench.h"
18 
19 int main(int argc, char ** argv)
20 {
21  std::cout << "test a_wrench" << std::endl;
22  a_wrench f1(0,0,0,5,0,0);
23  std::cout << "f1 " << f1 << std::endl;
24  a_wrench f2(0,1,0,5,0,0);
25  std::cout << "f2 " << f2 << std::endl;
26  a_wrench f3(1,0,0,0,2,0);
27  std::cout << "f3 " << f3 << std::endl;
28  std::cout << "f1+f2 " << f1+f2 << std::endl;
29  a_wrench f4(0,0,0,2,0,0,3);
30  std::cout << "f4 " << f4 << std::endl;
31  std::cout << "-f4 " << -f4 << std::endl;
32 }
a wrench class
Definition: a_wrench.h:30
int main(int argc, char **argv)