Unravel Engine C++ Reference
Loading...
Searching...
No Matches
bbox.hpp
Go to the documentation of this file.
1#pragma once
2#include "vector.hpp"
3
4namespace ser20
5{
6template<typename Archive>
7inline void SERIALIZE_FUNCTION_NAME(Archive& ar, math::bbox& obj)
8{
9 try_serialize(ar, ser20::make_nvp("min", obj.min));
10 try_serialize(ar, ser20::make_nvp("min", obj.max));
11}
12} // 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
Storage for box vector values and wraps up common functionality.
Definition bbox.h:21
vec3 max
The maximum vector value of the bounding box.
Definition bbox.h:311
vec3 min
The minimum vector value of the bounding box.
Definition bbox.h:306