Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
0ba49469
Commit
0ba49469
authored
Oct 13, 2011
by
Peter Eastman
Browse files
Implemented == and != operators for Vec3
parent
b7119534
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
openmmapi/include/openmm/Vec3.h
openmmapi/include/openmm/Vec3.h
+8
-0
No files found.
openmmapi/include/openmm/Vec3.h
View file @
0ba49469
...
...
@@ -67,6 +67,14 @@ public:
return
data
[
index
];
}
bool
operator
==
(
const
Vec3
&
rhs
)
const
{
return
(
data
[
0
]
==
rhs
[
0
]
&&
data
[
1
]
==
rhs
[
1
]
&&
data
[
2
]
==
rhs
[
2
]);
}
bool
operator
!=
(
const
Vec3
&
rhs
)
const
{
return
(
data
[
0
]
!=
rhs
[
0
]
||
data
[
1
]
!=
rhs
[
1
]
||
data
[
2
]
!=
rhs
[
2
]);
}
// Arithmetic operators
// unary plus
...
...
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