Gazebo Math
API Reference
8.1.1
insert_drive_file
Tutorials
library_books
Classes
toc
Namespaces
insert_drive_file
Files
launch
Gazebo Website
Index
List
Hierarchy
Members: All
Members: Functions
Members: Variables
Members: Typedefs
Members: Enumerations
Members: Enumerator
List
Members
Functions
Typedefs
Variables
Enumerations
Enumerator
src
gz-math
include
gz
math
AxisAlignedBoxHelpers.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2025 Open Source Robotics Foundation
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef GZ_MATH_AXISALIGNEDBOXHELPERS_HH_
18
#define GZ_MATH_AXISALIGNEDBOXHELPERS_HH_
19
20
#include <
gz/math/AxisAlignedBox.hh
>
21
#include <
gz/math/Box.hh
>
22
#include <
gz/math/Sphere.hh
>
23
#include <
gz/math/Capsule.hh
>
24
#include <
gz/math/Cylinder.hh
>
25
26
namespace
gz::math
27
{
28
// Inline bracket to help doxygen filtering.
29
inline
namespace
GZ_MATH_VERSION_NAMESPACE {
39
template
<
typename
Precision>
40
class
AxisAlignedBoxHelpers
41
{
42
public
:
46
static
AxisAlignedBox
ConvertToAxisAlignedBox
(
47
const
Box<Precision>
&
_box
);
48
52
static
AxisAlignedBox
ConvertToAxisAlignedBox
(
53
const
Sphere<Precision>
&
_sphere
);
54
58
static
AxisAlignedBox
ConvertToAxisAlignedBox
(
59
const
Capsule<Precision>
&
_capsule
);
60
64
static
AxisAlignedBox
ConvertToAxisAlignedBox
(
65
const
Cylinder<Precision>
&
_cylinder
);
66
};
67
}
68
}
// namespace gz::math
69
70
#include "gz/math/detail/AxisAlignedBoxHelpers.hh"
71
#endif
// GZ_MATH_AXISALIGNEDBOXHELPERS_HH_