f3b98f06296a73ac18cce0f323ed8dd248c4698c
[oweals/minetest.git] / src / utility.cpp
1 /*
2 (c) 2010 Perttu Ahola <celeron55@gmail.com>
3 */
4
5 #include "utility.h"
6
7 const v3s16 g_26dirs[26] =
8 {
9         // +right, +top, +back
10         v3s16( 0, 0, 1), // back
11         v3s16( 0, 1, 0), // top
12         v3s16( 1, 0, 0), // right
13         v3s16( 0, 0,-1), // front
14         v3s16( 0,-1, 0), // bottom
15         v3s16(-1, 0, 0), // left
16         // 6
17         v3s16(-1, 1, 0), // top left
18         v3s16( 1, 1, 0), // top right
19         v3s16( 0, 1, 1), // top back
20         v3s16( 0, 1,-1), // top front
21         v3s16(-1, 0, 1), // back left
22         v3s16( 1, 0, 1), // back right
23         v3s16(-1, 0,-1), // front left
24         v3s16( 1, 0,-1), // front right
25         v3s16(-1,-1, 0), // bottom left
26         v3s16( 1,-1, 0), // bottom right
27         v3s16( 0,-1, 1), // bottom back
28         v3s16( 0,-1,-1), // bottom front
29         // 18
30         v3s16(-1, 1, 1), // top back-left
31         v3s16( 1, 1, 1), // top back-right
32         v3s16(-1, 1,-1), // top front-left
33         v3s16( 1, 1,-1), // top front-right
34         v3s16(-1,-1, 1), // bottom back-left
35         v3s16( 1,-1, 1), // bottom back-right
36         v3s16(-1,-1,-1), // bottom front-left
37         v3s16( 1,-1,-1), // bottom front-right
38         // 26
39 };
40
41