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
7void
9 ::simox::AxisAlignedBoundingBox& bo)
10{
11 bo.set_center(dto.center);
12 bo.set_extents(dto.extents);
13}
14
15void
17 const ::simox::AxisAlignedBoundingBox& bo)
18{
19 dto.center = bo.center();
20 dto.extents = bo.extents();
21}
22
23void
24armarx::aron::simox::fromAron(const arondto::OrientedBox& dto, ::simox::OrientedBoxf& bo)
25{
26 bo = ::simox::OrientedBoxf(dto.center, dto.orientation, dto.extents);
27}
28
29void
30armarx::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
37void
38armarx::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
46void
47armarx::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}
::simox::arondto::OrientedBox OrientedBox
Definition simox.h:15
::simox::arondto::Color Color
Definition simox.h:16
::simox::arondto::AxisAlignedBoundingBox AxisAlignedBoundingBox
Definition simox.h:14
void toAron(arondto::AxisAlignedBoundingBox &dto, const ::simox::AxisAlignedBoundingBox &bo)
Definition simox.cpp:16
void fromAron(const arondto::AxisAlignedBoundingBox &dto, ::simox::AxisAlignedBoundingBox &bo)
Definition simox.cpp:8