Unravel Engine C++ Reference
Loading...
Searching...
No Matches
quaternion.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <math/math.h>
5
6namespace ser20
7{
8template<typename Archive, typename T, math::qualifier P>
9inline void SERIALIZE_FUNCTION_NAME(Archive& ar, math::tquat<T, P>& obj)
10{
11 try_serialize(ar, ser20::make_nvp("x", obj.x));
12 try_serialize(ar, ser20::make_nvp("y", obj.y));
13 try_serialize(ar, ser20::make_nvp("z", obj.z));
14 try_serialize(ar, ser20::make_nvp("w", obj.w));
15}
16} // namespace ser20
Definition yaml.hpp:46
auto try_serialize(Archive &ar, ser20::NameValuePair< T > &&t, const hpp::source_location &loc=hpp::source_location::current()) -> bool
#define SERIALIZE_FUNCTION_NAME