|
TraveSim Adapters
0.1
Protobuf adapters for TraveSim project
|
Data structure to hold a two dimensional vector. More...
#include "entity_state.hpp"
Public Member Functions | |
| Vector2D (double x=0, double y=0) | |
| Construct a new Vector2D object. More... | |
| void | rotate (double theta) |
| Perform a counter-clockwise rotation of the vector. More... | |
Public Attributes | |
| double | x |
| Public attributes. More... | |
| double | y |
Friends | |
| std::ostream & | operator<< (std::ostream &output, const Vector2D &vector_2d) |
| Output stream operator overloading. More... | |
Data structure to hold a two dimensional vector.
Definition at line 21 of file entity_state.hpp.
| travesim::Vector2D::Vector2D | ( | double | x = 0, |
| double | y = 0 |
||
| ) |
Construct a new Vector2D object.
| x | x quota |
| y | y quota |
Definition at line 21 of file entity_state.cpp.
| void travesim::Vector2D::rotate | ( | double | theta | ) |
Perform a counter-clockwise rotation of the vector.
| theta | Rotation angle in radians |
Definition at line 26 of file entity_state.cpp.
|
friend |
Output stream operator overloading.
Definition at line 33 of file entity_state.cpp.
| double travesim::Vector2D::x |
Public attributes.
Definition at line 48 of file entity_state.hpp.
| double travesim::Vector2D::y |
Definition at line 49 of file entity_state.hpp.