#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 eu2rot.cc.
References EulerAngles2MatR(), and M_PI.
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-2006)" << std::endl
64 std::cout.precision(16);
70 std::cin >> d[1] >> d[2];
Mat3x3 EulerAngles2MatR(const Vec3 &v)