RoboidControl-cpp/Placement.cpp
2023-12-28 09:38:26 +01:00

19 lines
574 B
C++

#include "Placement.h"
Placement::Placement() {
this->position = Vector3::zero;
this->thing = nullptr;
}
Placement::Placement(Thing *thing, Vector3 position, float horizontalDirection,
float verticalDirection)
: horizontalDirection(horizontalDirection),
verticalDirection(verticalDirection) {
this->thing = thing;
this->position = position;
}
Placement::Placement(Thing *thing, float horizontalDirection,
float verticalDirection)
: Placement(thing, Vector3::zero, horizontalDirection, verticalDirection) {}