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
>
4
#include <
serialization/serialization.h
>
5
6
namespace
ser20
7
{
8
template
<
typename
Archive,
typename
T, math::qualifier P>
9
inline
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
math.h
ser20
Definition
yaml.hpp:46
serialization.h
try_serialize
auto try_serialize(Archive &ar, ser20::NameValuePair< T > &&t, const hpp::source_location &loc=hpp::source_location::current()) -> bool
Definition
serialization.h:173
SERIALIZE_FUNCTION_NAME
#define SERIALIZE_FUNCTION_NAME
Definition
serialization.h:13
UnravelEngine
UnravelEngine
engine
engine
meta
core
math
quaternion.hpp
Generated by
1.12.0