libstp
Robotics library for Botball
Loading...
Searching...
No Matches
Geometry.hpp
Go to the documentation of this file.
1#pragma once
2
3// Plain geometry primitives shared by libstp::map. Keep these as PODs:
4// they're hot-path types (particle filter projects sensor positions
5// per-tick) and we want them trivially copyable into vectors.
6
7namespace libstp::map
8{
12 struct Point2D
13 {
14 float xCm{0.0f};
15 float yCm{0.0f};
16 };
17
24 {
25 float forwardCm{0.0f};
26 float strafeCm{0.0f};
27 };
28
33 {
34 float forwardCm{0.0f};
35 float strafeCm{0.0f};
36 };
37}