From 85a514a50e64bffbd51c971f419f398b142853dd Mon Sep 17 00:00:00 2001 From: Jiri Pittner Date: Fri, 30 Jun 2023 16:05:33 +0200 Subject: [PATCH] quaternion test in t.cc --- t.cc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/t.cc b/t.cc index b6214bf..56239f6 100644 --- a/t.cc +++ b/t.cc @@ -1237,7 +1237,7 @@ cout <>n >>m; @@ -1954,6 +1954,19 @@ cin >>v; cout < v,r,tmp,q,q1; +cin >>q; +q.normalize(); +q1= q; +q1.conjugateme(); +cout <<"test "<>v; +r= q*v*q1; +cout <<"rotated "< q(1.);