diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-03-31 16:01:20 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-03-31 16:01:20 +0200 |
commit | 7b0dc7f7003c07cca984fd49b5c18af9dafd4675 (patch) | |
tree | ee75667a055f89724356d91dca28fbeec9144dfb /c++/particle/particle.hpp | |
parent | a958e098431af9a19b587fe5dcc32cd01d525d04 (diff) |
wip
Diffstat (limited to 'c++/particle/particle.hpp')
-rw-r--r-- | c++/particle/particle.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/c++/particle/particle.hpp b/c++/particle/particle.hpp new file mode 100644 index 0000000..fd0ff59 --- /dev/null +++ b/c++/particle/particle.hpp @@ -0,0 +1,25 @@ +#pragma once + +#include <forstio/codec/data.hpp> + +namespace kel { +namespace lbm { +namespace sch { +using namespace saw::schema; + +template<typename T, uint64_t D> +using ParticleRigidBody = Struct< + Member<FixedArray<T,D>, "position">, + Member<FixedArray<T,D>, "velocity">, + Member<FixedArray<T,D>, "acceleration">, + Member<FixedArray<T,D>, "rotate_velocity">, + Member<FixedArray<T,D>, "rotate_acceleration"> +>; + +template<typename T, uint64_t D> +using ParticleMask = Struct< + Member<Array<T,D>, "mask"> +>; +} +} +} |