Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RBComb simulation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pascal Engeler
RBComb simulation
Commits
1aee002e
Commit
1aee002e
authored
5 years ago
by
Pascal Engeler
Browse files
Options
Downloads
Patches
Plain Diff
Fixed subtraction bug
parent
64c0b2eb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/vec2.hpp
+3
-3
3 additions, 3 deletions
include/vec2.hpp
with
3 additions
and
3 deletions
include/vec2.hpp
+
3
−
3
View file @
1aee002e
...
...
@@ -115,10 +115,10 @@ class Vec2{
rhs
+=
lhs
;
return
rhs
;
}
friend
Vec2
operator
-
(
const
Vec2
&
lhs
,
Vec2
rhs
)
noexcept
friend
Vec2
operator
-
(
Vec2
lhs
,
const
Vec2
&
rhs
)
noexcept
{
r
hs
-=
l
hs
;
return
r
hs
;
l
hs
-=
r
hs
;
return
l
hs
;
}
friend
Vec2
operator
*
(
const
value_t
s
,
Vec2
v
)
noexcept
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment