diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2007-08-07 06:56:36 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2007-08-07 06:56:36 +0000 |
| commit | d8f7aa4697faeffccb32a45235378afc69f402fd (patch) | |
| tree | 7074305d40ee73725f943aa84c41216ab487e170 /src/axis-manip.h | |
| parent | add a way to set a radio toggle in aux toolbar via desktop, by the toggles id (diff) | |
| download | inkscape-d8f7aa4697faeffccb32a45235378afc69f402fd.tar.gz inkscape-d8f7aa4697faeffccb32a45235378afc69f402fd.zip | |
Set z-orders of 3D box faces during dragging/resizing according to the perspective
(bzr r3409)
Diffstat (limited to 'src/axis-manip.h')
| -rw-r--r-- | src/axis-manip.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/axis-manip.h b/src/axis-manip.h index 7461678d5..5690eedcb 100644 --- a/src/axis-manip.h +++ b/src/axis-manip.h @@ -66,6 +66,10 @@ inline gint face_to_int (guint face_id) { } } +inline guint opposite_face (guint face_id) { + return face_id + ((face_id % 2 == 0) ? 1 : -1); +} + inline bool is_single_axis_direction (Box3D::Axis dir) { // tests whether dir is nonzero and a power of 2 return (!(dir & (dir - 1)) && dir); |
