13#ifndef SEEN_AXIS_MANIP_H
14#define SEEN_AXIS_MANIP_H
19#include <glibmm/ustring.h>
43 case X:
return "X";
break;
44 case Y:
return "Y";
break;
45 case Z:
return "Z";
break;
46 case W:
return "W";
break;
47 case NONE:
return "NONE";
break;
169inline std::pair<Box3D::Axis, Box3D::FrontOrRear>
int_to_face (
unsigned id) {
182 return !((face_id & 0x7) == 0x7);
192 unsigned int num = 0;
206 return (!(dir & (dir - 1)) && dir);
Perspective line for 3D perspectives.
Proj::Axis toProj(Box3D::Axis axis)
std::pair< Box3D::Axis, Box3D::FrontOrRear > int_to_face(unsigned id)
Box3D::Axis get_perpendicular_axis_direction(Box3D::Axis dirs)
int face_to_int(unsigned int face_id)
Box3D::Axis third_axis_direction(Box3D::Axis dir1, Box3D::Axis dir2)
Given two axis directions out of {X, Y, Z} or the corresponding plane, return the remaining one We do...
std::pair< Axis, Axis > get_remaining_axes(Axis axis)
Box3D::Axis orth_plane_or_axis(Box3D::Axis axis)
Glib::ustring string_from_axes(Box3D::Axis axis)
FrontOrRear face_positions[2]
unsigned int number_of_axis_directions(Box3D::Axis axis)
inline gint opposite_face (guint face_id) { return face_id + (((face_id % 2) == 0) ?...
bool is_face_id(unsigned int face_id)
Box3D::Axis extract_first_axis_direction(Box3D::Axis dirs)
Box3D::Axis extract_second_axis_direction(Box3D::Axis dirs)
int axis_to_int(Box3D::Axis axis)
bool is_plane(Box3D::Axis plane)
bool is_single_axis_direction(Box3D::Axis dir)
Generic auxiliary routines for 3D axes.
char const * string_from_axis(Proj::Axis axis)
Box3D::Axis toAffine(Proj::Axis axis)