diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2007-08-06 07:49:54 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2007-08-06 07:49:54 +0000 |
| commit | 2e55ba0bc498a1f2b8d5ed55c7b877da7a85c785 (patch) | |
| tree | d0524ee0e37df3f2dd21004d44b12c06f7793e7c /src/axis-manip.cpp | |
| parent | First stage of draggable vanishing points (no snapping/unsnapping yet) (diff) | |
| download | inkscape-2e55ba0bc498a1f2b8d5ed55c7b877da7a85c785.tar.gz inkscape-2e55ba0bc498a1f2b8d5ed55c7b877da7a85c785.zip | |
(Un-)Snapping of VPs by Shift-dragging; this makes it possible to separate perspectives and thus create new ones interactively
(bzr r3392)
Diffstat (limited to 'src/axis-manip.cpp')
| -rw-r--r-- | src/axis-manip.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/axis-manip.cpp b/src/axis-manip.cpp index 094da7dde..c2edbfb89 100644 --- a/src/axis-manip.cpp +++ b/src/axis-manip.cpp @@ -19,6 +19,13 @@ Axis axes[3] = { X, Y, Z }; Axis planes[3] = { XY, XZ, YZ }; FrontOrRear face_positions [2] = { FRONT, REAR }; +std::pair <Axis, Axis> +get_remaining_axes (Axis axis) { + if (!is_single_axis_direction (axis)) return std::make_pair (NONE, NONE); + Axis plane = orth_plane (axis); + return std::make_pair (extract_first_axis_direction (plane), extract_second_axis_direction (plane)); +} + } // namespace Box3D /* |
