Vanetza
Loading...
Searching...
No Matches
position.hpp
1#pragma once
2
3#include <vanetza/units/angle.hpp>
4#include <vanetza/units/length.hpp>
5
6namespace vanetza
7{
8namespace geodesy
9{
10
11/**
12 * Cartesian position.
13 * Point in an ENU (East-North-Up) coordinate system, units in meters.
14 */
16{
17 CartesianPosition() : x(0.0 * units::si::meter), y(0.0 * units::si::meter) {}
18 CartesianPosition(units::Length x_, units::Length y_) : x(x_), y(y_) {}
19 units::Length x;
20 units::Length y;
21};
22
24
26{
27 GeodeticPosition() :
28 latitude(0.0 * units::degree), longitude(0.0 * units::degree) {}
29 GeodeticPosition(units::GeoAngle lat, units::GeoAngle lon) :
30 latitude(lat), longitude(lon) {}
31 units::GeoAngle latitude;
32 units::GeoAngle longitude;
33};
34
35} // namespace geodesy
36} // namespace vanetza
ChunckPacket is a packet consisting of several memory chunks.
ByteBufferConvertible & operator[](OsiLayer ol)
ChunkPacket & merge(ChunkPacket &packet, OsiLayer from, OsiLayer to)
std::size_t size() const
const ByteBufferConvertible & layer(OsiLayer ol) const
const ByteBufferConvertible & operator[](OsiLayer ol) const
ByteBufferConvertible & layer(OsiLayer ol)
std::size_t size(OsiLayer from, OsiLayer to) const
ChunkPacket extract(OsiLayer from, OsiLayer to)
std::size_t size(OsiLayer from, OsiLayer to) const
buffer_const_range operator[](OsiLayer layer) const
std::size_t size() const
void set_boundary(OsiLayer, unsigned bytes)
const ByteBuffer & buffer() const
CohesivePacket(const ByteBuffer &buffer, OsiLayer layer)
void trim(OsiLayer from, unsigned bytes)
std::size_t size(OsiLayer single_layer) const
value_type operator[](size_type) const
Definition byte_view.cpp:48
byte_view_range(ByteBuffer &&)
Definition byte_view.cpp:37
byte_view_range(const ByteBuffer::const_iterator &, const ByteBuffer::const_iterator &)
Definition byte_view.cpp:27
ByteBuffer::const_pointer data() const
Definition byte_view.cpp:42