]>
Dogcows Code - chaz/yoink/blob - src/Moof/Aabb.cc
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
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.
10 **************************************************************************/
22 void Aabb::getOctant(Aabb& octant, int num) const
24 Vector3 mid = getCenter();
29 octant.init(Vector3(min[0], min[1], mid[2]),
30 Vector3(mid[0], mid[1], max[2]));
34 octant.init(Vector3(mid[0], min[1], mid[2]),
35 Vector3(max[0], mid[1], max[2]));
39 octant.init(mid, max);
43 octant.init(Vector3(min[0], mid[1], mid[2]),
44 Vector3(mid[0], max[1], max[2]));
48 octant.init(min, mid);
52 octant.init(Vector3(mid[0], min[1], min[2]),
53 Vector3(max[0], mid[1], mid[2]));
57 octant.init(Vector3(mid[0], mid[1], min[2]),
58 Vector3(max[0], max[1], mid[2]));
62 octant.init(Vector3(min[0], mid[1], min[2]),
63 Vector3(mid[0], max[1], mid[2]));
This page took 0.031641 seconds and 4 git commands to generate.