simox.cpp
Go to the documentation of this file.
1
#include "
simox.h
"
2
3
#include <RobotAPI/libraries/aron/common/aron/AxisAlignedBoundingBox.aron.generated.h>
4
#include <RobotAPI/libraries/aron/common/aron/Color.aron.generated.h>
5
#include <RobotAPI/libraries/aron/common/aron/OrientedBox.aron.generated.h>
6
7
void
8
armarx::aron::simox::fromAron
(
const
arondto::AxisAlignedBoundingBox
& dto,
9
::
simox::AxisAlignedBoundingBox
&
bo
)
10
{
11
bo
.center() = dto.center;
12
bo
.extents() = dto.extents;
13
}
14
15
void
16
armarx::aron::simox::toAron
(
arondto::AxisAlignedBoundingBox
& dto,
17
const ::simox::AxisAlignedBoundingBox
&
bo
)
18
{
19
dto.center =
bo
.center();
20
dto.extents =
bo
.extents();
21
}
22
23
void
24
armarx::aron::simox::fromAron
(
const
arondto::OrientedBox
& dto, ::simox::OrientedBoxf&
bo
)
25
{
26
bo
= ::simox::OrientedBoxf(dto.center, dto.orientation, dto.extents);
27
}
28
29
void
30
armarx::aron::simox::toAron
(
arondto::OrientedBox
& dto, const ::simox::OrientedBoxf&
bo
)
31
{
32
dto.center =
bo
.center();
33
dto.orientation =
bo
.rotation();
34
dto.extents =
bo
.dimensions();
35
}
36
37
void
38
armarx::aron::simox::fromAron
(
const
arondto::Color
& dto, ::
simox::Color
&
bo
)
39
{
40
bo
.r = dto.r;
41
bo
.g = dto.g;
42
bo
.b = dto.b;
43
bo
.a = dto.a;
44
}
45
46
void
47
armarx::aron::simox::toAron
(
arondto::Color
& dto,
const ::simox::Color
&
bo
)
48
{
49
dto.r =
bo
.r;
50
dto.g =
bo
.g;
51
dto.b =
bo
.b;
52
dto.a =
bo
.a;
53
}
armarx::aron::simox::fromAron
void fromAron(const arondto::AxisAlignedBoundingBox &dto, ::simox::AxisAlignedBoundingBox &bo)
Definition:
simox.cpp:8
armarx::aron::simox::arondto::AxisAlignedBoundingBox
::simox::arondto::AxisAlignedBoundingBox AxisAlignedBoundingBox
Definition:
simox.h:14
Color
uint32_t Color
RGBA color.
Definition:
color.h:8
simox.h
armarx::aron::simox::arondto::Color
::simox::arondto::Color Color
Definition:
simox.h:16
armarx::aron::simox::toAron
void toAron(arondto::AxisAlignedBoundingBox &dto, const ::simox::AxisAlignedBoundingBox &bo)
Definition:
simox.cpp:16
armarx::aron::bo
const std::optional< BoT > & bo
Definition:
aron_conversions.h:168
armarx::aron::simox::arondto::OrientedBox
::simox::arondto::OrientedBox OrientedBox
Definition:
simox.h:15
RobotAPI
libraries
aron
common
aron_conversions
simox.cpp
Generated on Sat Oct 12 2024 09:14:09 for armarx_documentation by
1.8.17