All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SingleSphere.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "VectorMath.h"
6 #include <vector>
7 
8 namespace Eegeo
9 {
10  namespace Geometry
11  {
12  struct SingleSphere
13  {
14  Eegeo::v3 centre;
15  float radius;
16  };
17 
18  SingleSphere BoundingSphereFromCentreAndPoints(const v3& centre, const std::vector<v3>& points);
19 
20  bool SphereContainsPoint(const SingleSphere& sphere, const v3& point);
21 
22  void CalculateSphereSuperset(SingleSphere& sphereA,
23  SingleSphere& sphereB,
24  SingleSphere& out_sphere);
25  }
26 }