Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Robert Sachunsky
olena
Commits
b369b21a
Commit
b369b21a
authored
Oct 21, 2010
by
Roland Levillain
Browse files
Fix test fun/x2x/composed.
* tests/fun/x2x/composed.cc: Fix the initialization of the axis vector.
parent
1085d061
Changes
2
Hide whitespace changes
Inline
Side-by-side
milena/ChangeLog
View file @
b369b21a
2010-10-21 Roland Levillain <roland@lrde.epita.fr>
Fix test fun/x2x/composed.
* tests/fun/x2x/composed.cc: Fix the initialization of the axis
vector.
2010-10-21 Roland Levillain <roland@lrde.epita.fr>
Fix 3D rotations.
milena/tests/fun/x2x/composed.cc
View file @
b369b21a
...
...
@@ -24,13 +24,13 @@
// executable file might be covered by the GNU General Public License.
#include <iostream>
#include <mln/fun/x2x/translation.hh>
#include <mln/fun/x2x/rotation.hh>
#include <mln/fun/x2x/composed.hh>
#include <mln/fun/i2v/all_to.hh>
int
main
()
{
using
namespace
mln
;
...
...
@@ -43,9 +43,7 @@ int main()
algebra
::
vec
<
3
,
float
>
vec1
=
make
::
vec
(
a
,
b
,
c
);
fun
::
x2x
::
translation
<
3
,
float
>
tr
(
all_to
(
1.6
));
algebra
::
vec
<
3
,
float
>
axis
;
axis
[
0
]
=
0
;
axis
[
1
]
=
1
;
axis
[
0
]
=
0
;
axis
.
set
(
0
,
1
,
0
);
fun
::
x2x
::
rotation
<
3
,
float
>
rot
(
0.3
,
axis
);
std
::
cout
<<
"vec : "
<<
vec1
<<
std
::
endl
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment