All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
UnityBuildingHighlightClipPlanePair.h
1 #pragma once
2 
3 #include "VectorMath.h"
4 
5 #include <array>
6 #include <vector>
7 
8 namespace Eegeo
9 {
10  namespace Unity
11  {
13  {
14  static std::vector<UnityBuildingHighlightClipPlanePairInterop> ConvertFromNative(const std::vector<std::array<v4, 2>>& heightClipPlanes)
15  {
16  std::vector<UnityBuildingHighlightClipPlanePairInterop> result;
17  result.reserve(heightClipPlanes.size());
18  for (const auto& planePair : heightClipPlanes)
19  {
20  result.emplace_back(planePair[0], planePair[1]);
21  }
22  return result;
23  }
24 
25  UnityBuildingHighlightClipPlanePairInterop(const v4& _bottom, const v4& _top)
26  : bottom(_bottom)
27  , top(_top)
28  {}
29 
30  v4 bottom;
31  v4 top;
32  };
33  }
34 }