Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
Unterteilungsalgorithmen
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kai Westerkamp
Unterteilungsalgorithmen
Commits
eba9a44f
Commit
eba9a44f
authored
Sep 24, 2016
by
Philipp Adolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement != for Triangle
parent
0727fa49
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
triangle.cpp
QTProject/triangle.cpp
+4
-0
triangle.h
QTProject/triangle.h
+1
-0
No files found.
QTProject/triangle.cpp
View file @
eba9a44f
...
@@ -139,6 +139,10 @@ bool Triangle::operator==(const Triangle &other) const {
...
@@ -139,6 +139,10 @@ bool Triangle::operator==(const Triangle &other) const {
return
u_
==
other
.
u_
&&
v_
==
other
.
v_
&&
w_
==
other
.
w_
;
return
u_
==
other
.
u_
&&
v_
==
other
.
v_
&&
w_
==
other
.
w_
;
}
}
bool
Triangle
::
operator
!=
(
const
Triangle
&
other
)
const
{
return
!
(
*
this
==
other
);
}
bool
Triangle
::
operator
<
(
const
Triangle
&
other
)
const
{
bool
Triangle
::
operator
<
(
const
Triangle
&
other
)
const
{
if
(
u_
<
other
.
u_
)
{
if
(
u_
<
other
.
u_
)
{
return
true
;
return
true
;
...
...
QTProject/triangle.h
View file @
eba9a44f
...
@@ -55,6 +55,7 @@ class Triangle {
...
@@ -55,6 +55,7 @@ class Triangle {
// == and < both ignore the vertex buffer, they only compare indices.
// == and < both ignore the vertex buffer, they only compare indices.
// They are implemented so that Triangle can be used as the key of a QMap.
// They are implemented so that Triangle can be used as the key of a QMap.
bool
operator
==
(
const
Triangle
&
other
)
const
;
bool
operator
==
(
const
Triangle
&
other
)
const
;
bool
operator
!=
(
const
Triangle
&
other
)
const
;
bool
operator
<
(
const
Triangle
&
other
)
const
;
bool
operator
<
(
const
Triangle
&
other
)
const
;
bool
next_ctrclockwise
(
Edge
first
,
Edge
next
)
const
;
bool
next_ctrclockwise
(
Edge
first
,
Edge
next
)
const
;
...
...
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