Code

Node tool: special case node duplication for endnodes - select new endnode
[inkscape.git] / src / axis-manip.cpp
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 Proj {
18 Axis axes[4]   = { X,  Y,  Z, W };
20 } // namespace Proj
23 namespace Box3D {
25 Axis axes[3]   = { X,  Y,  Z };
26 Axis planes[3] = { XY, XZ, YZ };
27 FrontOrRear face_positions [2] = { FRONT, REAR };
29 std::pair <Axis, Axis>
30 get_remaining_axes (Axis axis) {
31     if (!is_single_axis_direction (axis)) return std::make_pair (NONE, NONE);
32     Axis plane = orth_plane_or_axis (axis);
33     return std::make_pair (extract_first_axis_direction (plane), extract_second_axis_direction (plane));
34 }
36 } // namespace Box3D 
37  
38 /*
39   Local Variables:
40   mode:c++
41   c-file-style:"stroustrup"
42   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
43   indent-tabs-mode:nil
44   fill-column:99
45   End:
46 */
47 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :