Blue Brain BioExplorer
Sphere.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2024, EPFL/Blue Brain Project
3  *
4  * The Blue Brain BioExplorer is a tool for scientists to extract and analyse
5  * scientific data from visualization
6  *
7  * This file is part of Blue Brain BioExplorer <https://github.com/BlueBrain/BioExplorer>
8  *
9  * This library is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU Lesser General Public License version 3.0 as published
11  * by the Free Software Foundation.
12  *
13  * This library is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22 
23 #pragma once
24 
25 #include "CommonDefines.h"
26 
27 #include "Defines.h"
28 
29 #if __cplusplus
30 namespace core
31 {
32 #endif
33 
34 struct Sphere
35 {
36 #if __cplusplus
37  Sphere(const Vector3f& c = {0.f, 0.f, 0.f}, const float r = 0.f, const uint64_t data = 0)
38  : userData(data)
39  , center(c)
40  , radius(r)
41  {
42  }
43 #endif
44 
45  UINT64_T userData;
46  VEC3_TYPE center;
47  float radius;
48  __MEMORY_ALIGNMENT__
49 };
50 
51 #if __cplusplus
52 } // Platform
53 #endif
glm::vec3 Vector3f
Definition: MathTypes.h:137
Definition: Sphere.h:35
UINT64_T userData
Definition: Sphere.h:45
float radius
Definition: Sphere.h:47
VEC3_TYPE center
Definition: Sphere.h:46