Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
Takin
mag-core
Commits
6fa2e8b1
Verified
Commit
6fa2e8b1
authored
Feb 26, 2021
by
Tobias WEBER
Browse files
adapted to tlibs changes
parent
ef3194f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/pol/pol.cpp
View file @
6fa2e8b1
...
@@ -479,7 +479,7 @@ public:
...
@@ -479,7 +479,7 @@ public:
if
(
m_3dobjsReady
)
if
(
m_3dobjsReady
)
{
{
// P_i
// P_i
t_mat_gl
matPi
=
GlPlotRenderer
::
G
et
A
rrow
M
atrix
(
t_mat_gl
matPi
=
tl2
::
g
et
_a
rrow
_m
atrix
<
t_vec_gl
,
t_mat_gl
,
t_real_gl
>
(
tl2
::
create
<
t_vec_gl
>
({
t_real_gl
(
PiX
),
t_real_gl
(
PiY
),
t_real_gl
(
PiZ
)}),
// to
tl2
::
create
<
t_vec_gl
>
({
t_real_gl
(
PiX
),
t_real_gl
(
PiY
),
t_real_gl
(
PiZ
)}),
// to
1.
,
// scale
1.
,
// scale
tl2
::
create
<
t_vec_gl
>
({
0
,
0
,
0.5
}),
// translate
tl2
::
create
<
t_vec_gl
>
({
0
,
0
,
0.5
}),
// translate
...
@@ -487,7 +487,7 @@ public:
...
@@ -487,7 +487,7 @@ public:
m_plot
->
GetRenderer
()
->
SetObjectMatrix
(
m_arrow_pi
,
matPi
);
m_plot
->
GetRenderer
()
->
SetObjectMatrix
(
m_arrow_pi
,
matPi
);
// P_f
// P_f
t_mat_gl
matPf
=
GlPlotRenderer
::
G
et
A
rrow
M
atrix
(
t_mat_gl
matPf
=
tl2
::
g
et
_a
rrow
_m
atrix
<
t_vec_gl
,
t_mat_gl
,
t_real_gl
>
(
tl2
::
create
<
t_vec_gl
>
({
t_real_gl
(
P_f
[
0
].
real
()),
t_real_gl
(
P_f
[
1
].
real
()),
t_real_gl
(
P_f
[
2
].
real
())}),
// to
tl2
::
create
<
t_vec_gl
>
({
t_real_gl
(
P_f
[
0
].
real
()),
t_real_gl
(
P_f
[
1
].
real
()),
t_real_gl
(
P_f
[
2
].
real
())}),
// to
1.
,
// scale
1.
,
// scale
tl2
::
create
<
t_vec_gl
>
({
0
,
0
,
0.5
}),
// translate
tl2
::
create
<
t_vec_gl
>
({
0
,
0
,
0.5
}),
// translate
...
@@ -496,7 +496,7 @@ public:
...
@@ -496,7 +496,7 @@ public:
// Re(M)
// Re(M)
const
t_real_gl
lenReM
=
t_real_gl
(
std
::
sqrt
(
MPerpReX
*
MPerpReX
+
MPerpReY
*
MPerpReY
+
MPerpReZ
*
MPerpReZ
));
const
t_real_gl
lenReM
=
t_real_gl
(
std
::
sqrt
(
MPerpReX
*
MPerpReX
+
MPerpReY
*
MPerpReY
+
MPerpReZ
*
MPerpReZ
));
t_mat_gl
matMRe
=
GlPlotRenderer
::
G
et
A
rrow
M
atrix
(
t_mat_gl
matMRe
=
tl2
::
g
et
_a
rrow
_m
atrix
<
t_vec_gl
,
t_mat_gl
,
t_real_gl
>
(
tl2
::
create
<
t_vec_gl
>
({
t_real_gl
(
MPerpReX
),
t_real_gl
(
MPerpReY
),
t_real_gl
(
MPerpReZ
)}),
// to
tl2
::
create
<
t_vec_gl
>
({
t_real_gl
(
MPerpReX
),
t_real_gl
(
MPerpReY
),
t_real_gl
(
MPerpReZ
)}),
// to
lenReM
,
// scale
lenReM
,
// scale
tl2
::
create
<
t_vec_gl
>
({
0
,
0
,
0.5
}),
// translate
tl2
::
create
<
t_vec_gl
>
({
0
,
0
,
0.5
}),
// translate
...
@@ -506,7 +506,7 @@ public:
...
@@ -506,7 +506,7 @@ public:
// Im(M)
// Im(M)
const
t_real_gl
lenImM
=
t_real_gl
(
std
::
sqrt
(
MPerpImX
*
MPerpImX
+
MPerpImY
*
MPerpImY
+
MPerpImZ
*
MPerpImZ
));
const
t_real_gl
lenImM
=
t_real_gl
(
std
::
sqrt
(
MPerpImX
*
MPerpImX
+
MPerpImY
*
MPerpImY
+
MPerpImZ
*
MPerpImZ
));
t_mat_gl
matMIm
=
GlPlotRenderer
::
G
et
A
rrow
M
atrix
(
t_mat_gl
matMIm
=
tl2
::
g
et
_a
rrow
_m
atrix
<
t_vec_gl
,
t_mat_gl
,
t_real_gl
>
(
tl2
::
create
<
t_vec_gl
>
({
t_real_gl
(
MPerpImX
),
t_real_gl
(
MPerpImY
),
t_real_gl
(
MPerpImZ
)}),
// to
tl2
::
create
<
t_vec_gl
>
({
t_real_gl
(
MPerpImX
),
t_real_gl
(
MPerpImY
),
t_real_gl
(
MPerpImZ
)}),
// to
lenImM
,
// scale
lenImM
,
// scale
tl2
::
create
<
t_vec_gl
>
({
0
,
0
,
0.5
}),
// translate
tl2
::
create
<
t_vec_gl
>
({
0
,
0
,
0.5
}),
// translate
...
...
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