1 #define __AXIS_MANIP_C__
3 /*
4 * Generic auxiliary routines for 3D axes
5 *
6 * Authors:
7 * Maximilian Albert <Anhalter42@gmx.de>
8 *
9 * Copyright (C) 2007 authors
10 *
11 * Released under GNU GPL, read the file 'COPYING' for more information
12 */
14 #include "axis-manip.h"
16 namespace Box3D {
18 Axis axes[3] = { X, Y, Z };
19 Axis planes[3] = { XY, XZ, YZ };
20 FrontOrRear face_positions [2] = { FRONT, REAR };
22 std::pair <Axis, Axis>
23 get_remaining_axes (Axis axis) {
24 if (!is_single_axis_direction (axis)) return std::make_pair (NONE, NONE);
25 Axis plane = orth_plane_or_axis (axis);
26 return std::make_pair (extract_first_axis_direction (plane), extract_second_axis_direction (plane));
27 }
29 } // namespace Box3D
31 /*
32 Local Variables:
33 mode:c++
34 c-file-style:"stroustrup"
35 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
36 indent-tabs-mode:nil
37 fill-column:99
38 End:
39 */
40 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :