FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Aether/include/sphere.h at develop · AetherModel/Aether · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
AetherModel
/
Aether
Public
Notifications
You must be signed in to change notification settings
Fork
31
Star
25
Code
Issues
21
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Aether
/
include
/
sphere.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
102 lines (82 loc) · 2.23 KB
Breadcrumbs
Aether
/
include
/
sphere.h
Copy path
File metadata and controls
102 lines (82 loc) · 2.23 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
//
Copyright 2020, the Aether Development Team (see doc/dev_team.md for members)
//
Full license can be found in License.md
#
ifndef
INCLUDE_SPHERE_H_
#
define
INCLUDE_SPHERE_H_
#
include
"
aether.h
"
#
include
<
memory
>
/*
************************************************
* \brief A namespace with all (1-root) sphere grid logic.
************************************************
*/
namespace
Sphere
{
//
/ The normalized origins of each face of the cube (i.e. corner)
static
const
arma_mat
ORIGINS
= {
{
0.0
, -
0.5
,
0.0
}
};
//
/ Normalized right steps in cube
static
const
arma_mat
RIGHTS
= {
{
2.0
,
0.0
,
0.0
}
};
//
/ Normalized right steps in cube
static
const
arma_mat
UPS
= {
{
0.0
,
1.0
,
0.0
}
};
};
/*
************************************************
* \brief A namespace with all (4-root) sphere grid logic.
************************************************
*/
namespace
Sphere4
{
//
/ The normalized origins of each node (i.e. corner)
static
const
arma_mat
ORIGINS
= {
{
0.0
, -
0.5
,
0.0
},
{
0.0
, -
0.25
,
0.0
},
{
0.0
,
0.0
,
0.0
},
{
0.0
,
0.25
,
0.0
}
};
//
/ Normalized right steps in node
static
const
arma_mat
RIGHTS
= {
{
2.0
,
0.0
,
0.0
},
{
2.0
,
0.0
,
0.0
},
{
2.0
,
0.0
,
0.0
},
{
2.0
,
0.0
,
0.0
}
};
//
/ Normalized up steps in node
static
const
arma_mat
UPS
= {
{
0.0
,
0.25
,
0.0
},
{
0.0
,
0.25
,
0.0
},
{
0.0
,
0.25
,
0.0
},
{
0.0
,
0.25
,
0.0
}
};
};
/*
************************************************
* \brief A namespace with all (6-root) sphere grid logic.
************************************************
*/
namespace
Sphere6
{
//
/ The normalized origins of each face of the cube (i.e. corner)
static
const
arma_mat
ORIGINS
= {
{
0.0
, -
0.5
,
0.0
},
{
1.0
, -
0.5
,
0.0
},
{
0.0
, -
0.5
+
1.0
/
3.0
,
0.0
},
{
1.0
, -
0.5
+
1.0
/
3.0
,
0.0
},
{
0.0
, -
0.5
+
2.0
/
3.0
,
0.0
},
{
1.0
, -
0.5
+
2.0
/
3.0
,
0.0
}
};
//
/ Normalized right steps in cube
static
const
arma_mat
RIGHTS
= {
{
1.0
,
0.0
,
0.0
},
{
1.0
,
0.0
,
0.0
},
{
1.0
,
0.0
,
0.0
},
{
1.0
,
0.0
,
0.0
},
{
1.0
,
0.0
,
0.0
},
{
1.0
,
0.0
,
0.0
}
};
//
/ Normalized right steps in cube
static
const
arma_mat
UPS
= {
{
0.0
,
1.0
/
3.0
,
0.0
},
{
0.0
,
1.0
/
3.0
,
0.0
},
{
0.0
,
1.0
/
3.0
,
0.0
},
{
0.0
,
1.0
/
3.0
,
0.0
},
{
0.0
,
1.0
/
3.0
,
0.0
},
{
0.0
,
1.0
/
3.0
,
0.0
}
};
}
//
CubeSphere::
#
endif
//
INCLUDE_SPHERE_H_
Back
|
FazBrowse Home
|
New Git URL