Lines Matching defs:axis
26 // The X-/Y-/Z-axis corresponds to the first/second/third digit
39 string_from_axis(Proj::Axis axis) {
40 switch (axis) {
56 // The X-/Y-/Z-axis corresponds to the first/second/third digit
77 inline int axis_to_int(Box3D::Axis axis) {
78 switch (axis) {
93 inline Proj::Axis toProj(Box3D::Axis axis) {
94 switch (axis) {
117 inline Box3D::Axis toAffine(Proj::Axis axis) {
118 switch (axis) {
139 * A box's face is identified by the axis perpendicular to it.
146 // or by the axis that is orthogonal to it (e.g., Z).
189 inline unsigned int number_of_axis_directions (Box3D::Axis axis) {
191 if (axis & Box3D::X) num++;
192 if (axis & Box3D::Y) num++;
193 if (axis & Box3D::Z) num++;
208 * Given two axis directions out of {X, Y, Z} or the corresponding plane, return the remaining one
218 /* returns the first/second axis direction occuring in the (possibly compound) expression 'dirs' */
229 inline Box3D::Axis orth_plane_or_axis (Box3D::Axis axis) {
230 return (Box3D::Axis) (Box3D::XYZ ^ axis);
233 /* returns an axis direction perpendicular to the ones occuring in the (possibly compound) expression 'dirs' */
241 char * string_from_axes (Box3D::Axis axis);
242 std::pair <Axis, Axis> get_remaining_axes (Axis axis);