Lines Matching defs:axis
554 * from which the perspective lines in the direction of 'axis' emerge
556 void box3d_corners_for_PLs (const SPBox3D * box, Proj::Axis axis,
564 double coord = (box->orig_corner0[axis] > box->orig_corner7[axis]) ?
565 box->orig_corner0[axis] :
566 box->orig_corner7[axis];
570 switch (axis) {
895 box3d_swap_sides(int z_orders[6], Box3D::Axis axis) {
900 if (!(Box3D::int_to_face(z_orders[i]) & axis)) {
944 // determine the "central" axis (if there is one)
1107 * \a i21 and \a id2 to the VP in direction \a axis. If the VP is infinite, we say that \a pt
1117 box3d_pt_lies_in_PL_sector (SPBox3D const *box, Geom::Point const &pt, int id1, int id2, Box3D::Axis axis) {
1125 if (persp3d_VP_is_finite(persp->perspective_impl, Box3D::toProj(axis))) {
1126 Geom::Point vp(persp3d_get_VP(persp, Box3D::toProj(axis)).affine());
1132 Box3D::PerspectiveLine pl1(c1, Box3D::toProj(axis), persp);
1133 Box3D::PerspectiveLine pl2(c2, Box3D::toProj(axis), persp);
1137 Geom::Point c3(box3d_get_corner_screen(box, id1 ^ axis, false));
1149 box3d_VP_lies_in_PL_sector (SPBox3D const *box, Proj::Axis vpdir, int id1, int id2, Box3D::Axis axis) {
1155 return box3d_pt_lies_in_PL_sector(box, persp3d_get_VP(persp, vpdir).affine(), id1, id2, axis);
1159 /* swap the coordinates of corner0 and corner7 along the specified axis */
1161 box3d_swap_coords(SPBox3D *box, Proj::Axis axis, bool smaller = true) {
1164 if ((box->orig_corner0[axis] < box->orig_corner7[axis]) != smaller) {
1165 double tmp = box->orig_corner0[axis];
1166 box->orig_corner0[axis] = box->orig_corner7[axis];
1167 box->orig_corner7[axis] = tmp;
1181 box3d_check_for_swapped_coords(SPBox3D *box, Proj::Axis axis, bool smaller) {
1185 if ((box->orig_corner0[axis] < box->orig_corner7[axis]) != smaller) {
1186 box->swapped = (Box3D::Axis) (box->swapped | Proj::toAffine(axis));
1188 box->swapped = (Box3D::Axis) (box->swapped & ~Proj::toAffine(axis));