Lines Matching refs:pt_proj
362 box3d_snap (SPBox3D *box, int id, Proj::Pt3 const &pt_proj, Proj::Pt3 const &start_pt) {
380 Geom::Point pt = persp_impl->tmat.image(pt_proj).affine();
459 Proj::Pt3 pt_proj (persp_impl->tmat.preimage (new_pos, (id < 4) ? box->orig_corner0[Proj::Z] :
462 pt_proj = box3d_snap (box, id, pt_proj, box3d_get_proj_corner (id, box->save_corner0, box->save_corner7));
465 // normalizing pt_proj is essential because we want to mingle affine coordinates
466 pt_proj.normalize();
467 box->orig_corner0 = Proj::Pt3 ((id & Box3D::X) ? box->save_corner0[Proj::X] : pt_proj[Proj::X],
468 (id & Box3D::Y) ? box->save_corner0[Proj::Y] : pt_proj[Proj::Y],
471 box->orig_corner7 = Proj::Pt3 ((id & Box3D::X) ? pt_proj[Proj::X] : box->save_corner7[Proj::X],
472 (id & Box3D::Y) ? pt_proj[Proj::Y] : box->save_corner7[Proj::Y],
482 Proj::Pt3 pt_proj (persp_impl->tmat.preimage (new_pos_snapped,
489 // normalizing pt_proj is essential because we want to mingle affine coordinates
490 pt_proj.normalize();
491 box->orig_corner0 = Proj::Pt3 (corner0_move_x ? pt_proj[Proj::X] : box->orig_corner0[Proj::X],
492 corner0_move_y ? pt_proj[Proj::Y] : box->orig_corner0[Proj::Y],
493 (id & Box3D::Z) ? box->orig_corner0[Proj::Z] : pt_proj[Proj::Z],
495 box->orig_corner7 = Proj::Pt3 (corner7_move_x ? pt_proj[Proj::X] : box->orig_corner7[Proj::X],
496 corner7_move_y ? pt_proj[Proj::Y] : box->orig_corner7[Proj::Y],
497 (id & Box3D::Z) ? pt_proj[Proj::Z] : box->orig_corner7[Proj::Z],
515 Proj::Pt3 pt_proj (persp->perspective_impl->tmat.preimage (new_pos, coord, Proj::Z));
519 pt_proj = box3d_snap (box, -1, pt_proj, old_pos_proj);
521 // normalizing pt_proj is essential because we want to mingle affine coordinates
522 pt_proj.normalize();
523 box->orig_corner0 = Proj::Pt3 ((movement & Box3D::X) ? pt_proj[Proj::X] - radx : box->orig_corner0[Proj::X],
524 (movement & Box3D::Y) ? pt_proj[Proj::Y] - rady : box->orig_corner0[Proj::Y],
527 box->orig_corner7 = Proj::Pt3 ((movement & Box3D::X) ? pt_proj[Proj::X] + radx : box->orig_corner7[Proj::X],
528 (movement & Box3D::Y) ? pt_proj[Proj::Y] + rady : box->orig_corner7[Proj::Y],
537 Proj::Pt3 pt_proj (persp->perspective_impl->tmat.preimage (new_pos_snapped, coord, Proj::X));
539 /* normalizing pt_proj is essential because we want to mingle affine coordinates */
540 pt_proj.normalize();
543 pt_proj[Proj::Z] - radz,
547 pt_proj[Proj::Z] + radz,