]> Dogcows Code - chaz/yoink/blob - src/Moof/Aabb.cc
reformatting
[chaz/yoink] / src / Moof / Aabb.cc
1
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
4 *
5 * vi:ts=4 sw=4 tw=75
6 *
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
9 *
10 **************************************************************************/
11
12 #include "Aabb.hh"
13 #include "Frustum.hh"
14 #include "OpenGL.hh"
15 #include "Texture.hh"
16
17
18 namespace Mf {
19
20
21 /*
22 void Aabb::getOctant(Aabb& octant, int num) const
23 {
24 Vector3 mid = getCenter();
25
26 switch (num)
27 {
28 case 0:
29 octant.init(Vector3(min[0], min[1], mid[2]),
30 Vector3(mid[0], mid[1], max[2]));
31 break;
32
33 case 1:
34 octant.init(Vector3(mid[0], min[1], mid[2]),
35 Vector3(max[0], mid[1], max[2]));
36 break;
37
38 case 2:
39 octant.init(mid, max);
40 break;
41
42 case 3:
43 octant.init(Vector3(min[0], mid[1], mid[2]),
44 Vector3(mid[0], max[1], max[2]));
45 break;
46
47 case 4:
48 octant.init(min, mid);
49 break;
50
51 case 5:
52 octant.init(Vector3(mid[0], min[1], min[2]),
53 Vector3(max[0], mid[1], mid[2]));
54 break;
55
56 case 6:
57 octant.init(Vector3(mid[0], mid[1], min[2]),
58 Vector3(max[0], max[1], mid[2]));
59 break;
60
61 case 7:
62 octant.init(Vector3(min[0], mid[1], min[2]),
63 Vector3(mid[0], max[1], mid[2]));
64 break;
65 }
66 }
67 */
68
69
70 } // namespace Mf
71
This page took 0.046365 seconds and 5 git commands to generate.