Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-fcl
Commits
950f90b9
Commit
950f90b9
authored
Apr 28, 2020
by
Joseph Mirabel
Browse files
Add Triangle::operator ==
parent
bfcd7283
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/hpp/fcl/data_types.h
View file @
950f90b9
...
...
@@ -102,6 +102,13 @@ public:
static
inline
size_type
size
()
{
return
3
;
}
bool
operator
==
(
const
Triangle
&
other
)
const
{
return
vids
[
0
]
==
other
.
vids
[
0
]
&&
vids
[
1
]
==
other
.
vids
[
1
]
&&
vids
[
2
]
==
other
.
vids
[
2
];
}
private:
/// @brief indices for each vertex of triangle
index_type
vids
[
3
];
...
...
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