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
2237321c
Commit
2237321c
authored
Nov 08, 2019
by
Max Lyon
Browse files
fix non-member min and max functions
parent
eae634fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/Geometry/Vector11T.hh
View file @
2237321c
...
...
@@ -767,15 +767,15 @@ VectorT<Scalar, DIM>& minimize(VectorT<Scalar, DIM>& _v1, VectorT<Scalar, DIM>&
/// \relates OpenMesh::VectorT
/// non-member max
template
<
typename
Scalar
,
int
DIM
>
VectorT
<
Scalar
,
DIM
>
max
(
VectorT
<
Scalar
,
DIM
>&
_v1
,
VectorT
<
Scalar
,
DIM
>&
_v2
)
{
return
VectorT
<
Scalar
,
DIM
>
(
_v1
)
.
max
imize
(
_v2
);
VectorT
<
Scalar
,
DIM
>
max
(
const
VectorT
<
Scalar
,
DIM
>&
_v1
,
const
VectorT
<
Scalar
,
DIM
>&
_v2
)
{
return
_v1
.
max
(
_v2
);
}
/// \relates OpenMesh::VectorT
/// non-member min
template
<
typename
Scalar
,
int
DIM
>
VectorT
<
Scalar
,
DIM
>
min
(
VectorT
<
Scalar
,
DIM
>&
_v1
,
VectorT
<
Scalar
,
DIM
>&
_v2
)
{
return
VectorT
<
Scalar
,
DIM
>
(
_v1
)
.
min
imize
(
_v2
);
VectorT
<
Scalar
,
DIM
>
min
(
const
VectorT
<
Scalar
,
DIM
>&
_v1
,
const
VectorT
<
Scalar
,
DIM
>&
_v2
)
{
return
_v1
.
min
(
_v2
);
}
...
...
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