VIPRA Documentation
Loading...
Searching...
No Matches
state.hpp
1#pragma once
2
3#include <vector>
4
5#include "vipra/geometry/f3d.hpp"
6
7namespace VIPRA {
12struct State {
13 std::vector<f3d> positions;
14 std::vector<f3d> velocities;
15
16 [[nodiscard]] auto size() const -> size_t { return positions.size(); }
17
18 void initialize(auto const& pedset)
19 {
20 positions = pedset.all_coords();
21 velocities = pedset.all_velocities();
22 }
23};
24} // namespace VIPRA
Struct that holds the updated positions and velocities of all pedestrians.
Definition state.hpp:12