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
OpenMesh
OpenMesh
Commits
b0f7f8b0
Commit
b0f7f8b0
authored
Nov 18, 2015
by
Hans-Christian Ebke
Browse files
Fixed VectorT::operator| and operator>>.
parent
fc5c715d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/Geometry/Vector11T.hh
View file @
b0f7f8b0
...
...
@@ -357,8 +357,7 @@ class VectorT {
template
<
typename
OtherScalar
,
typename
ResultScalar
=
decltype
(
std
::
declval
<
Scalar
>()
*
std
::
declval
<
const
OtherScalar
&>
())
>
typename
std
::
enable_if
<
DIM
==
3
,
ResultScalar
>::
type
operator
|
(
const
VectorT
<
OtherScalar
,
DIM
>&
_rhs
)
const
{
ResultScalar
operator
|
(
const
VectorT
<
OtherScalar
,
DIM
>&
_rhs
)
const
{
ResultScalar
p
=
values_
[
0
]
*
_rhs
[
0
];
for
(
int
i
=
1
;
i
<
DIM
;
++
i
)
{
p
+=
values_
[
i
]
*
_rhs
[
i
];
...
...
@@ -603,7 +602,7 @@ operator<<(std::ostream& os, const VectorT<Scalar, DIM> &_vec) {
/// read the space-separated components of a vector from a stream
template
<
typename
Scalar
,
int
DIM
>
typename
std
::
enable_if
<
sizeof
(
decltype
(
std
::
declval
<
std
::
o
stream
>
()
>>
std
::
declval
<
std
::
i
stream
>
()
>>
std
::
declval
<
const
Scalar
&>
()))
>=
0
,
std
::
istream
&>::
type
operator
>>
(
std
::
istream
&
is
,
VectorT
<
Scalar
,
DIM
>
&
_vec
)
{
for
(
int
i
=
0
;
i
<
DIM
;
++
i
)
...
...
Write
Preview
Supports
Markdown
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