Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
coal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Coal
coal
Commits
69212ab8
Verified
Commit
69212ab8
authored
5 years ago
by
Justin Carpentier
Browse files
Options
Downloads
Patches
Plain Diff
core: fix variable naming
parent
a17be7ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/hpp/fcl/BV/AABB.h
+3
-3
3 additions, 3 deletions
include/hpp/fcl/BV/AABB.h
with
3 additions
and
3 deletions
include/hpp/fcl/BV/AABB.h
+
3
−
3
View file @
69212ab8
...
@@ -230,16 +230,16 @@ static inline AABB translate(const AABB& aabb, const Vec3f& t)
...
@@ -230,16 +230,16 @@ static inline AABB translate(const AABB& aabb, const Vec3f& t)
return
res
;
return
res
;
}
}
static
inline
AABB
rotate
(
const
AABB
&
aabb
,
const
Matrix3f
&
t
)
static
inline
AABB
rotate
(
const
AABB
&
aabb
,
const
Matrix3f
&
R
)
{
{
AABB
res
(
t
*
aabb
.
min_
);
AABB
res
(
R
*
aabb
.
min_
);
Vec3f
corner
(
aabb
.
min_
);
Vec3f
corner
(
aabb
.
min_
);
const
std
::
size_t
bit
[
3
]
=
{
1
,
2
,
4
};
const
std
::
size_t
bit
[
3
]
=
{
1
,
2
,
4
};
for
(
std
::
size_t
ic
=
1
;
ic
<
8
;
++
ic
)
{
// ic = 0 corresponds to aabb.min_. Skip it.
for
(
std
::
size_t
ic
=
1
;
ic
<
8
;
++
ic
)
{
// ic = 0 corresponds to aabb.min_. Skip it.
for
(
std
::
size_t
i
=
0
;
i
<
3
;
++
i
)
{
for
(
std
::
size_t
i
=
0
;
i
<
3
;
++
i
)
{
corner
[
i
]
=
(
ic
&&
bit
[
i
])
?
aabb
.
max_
[
i
]
:
aabb
.
min_
[
i
];
corner
[
i
]
=
(
ic
&&
bit
[
i
])
?
aabb
.
max_
[
i
]
:
aabb
.
min_
[
i
];
}
}
res
+=
t
*
corner
;
res
+=
R
*
corner
;
}
}
return
res
;
return
res
;
}
}
...
...
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