#include "mbconfig.h"
#include <cstdlib>
#include <cstring>
#include <iostream>
#include "matvec3.h"
Go to the source code of this file.
int main |
( |
int |
argn, |
|
|
const char *const |
argv[] |
|
) |
| |
Definition at line 40 of file vec2rot.cc.
References MatR2vec().
43 if (!strcasecmp(argv[1],
"-?")
44 || !strcasecmp(argv[1],
"-h")
45 || !strcasecmp(argv[1],
"--help")) {
46 std::cerr << std::endl
47 <<
"usage: " << argv[0] << std::endl
49 <<
" reads the Euler angles (in degs)"
50 " from stdin;" << std::endl
51 <<
" writes the rotation matrix"
52 " on standard output" << std::endl
55 " m31, m32, m33)" << std::endl
57 <<
"part of MBDyn package (Copyright (C)"
58 " Pierangelo Masarati, 1996-2004)" << std::endl
64 unsigned short int i1, i2;
69 std::cin >> v1[0] >> v1[1] >> v1[2]
71 >> v2[0] >> v2[1] >> v2[2];
Mat3x3 MatR2vec(unsigned short int ia, const Vec3 &va, unsigned short int ib, const Vec3 &vb)