src/editmodes/circleMode.cpp

changeset 1013
fa025ba493d8
parent 1011
4fdd74a04790
child 1014
f0a8ecb6a357
equal deleted inserted replaced
1012:413ecd6b9801 1013:fa025ba493d8
43 renderer()->convert2dTo3d (renderer()->mousePosition(), false); 43 renderer()->convert2dTo3d (renderer()->mousePosition(), false);
44 Axis localx, localy; 44 Axis localx, localy;
45 renderer()->getRelativeAxes (localx, localy); 45 renderer()->getRelativeAxes (localx, localy);
46 double dx = m_drawedVerts[0][localx] - v1[localx]; 46 double dx = m_drawedVerts[0][localx] - v1[localx];
47 double dy = m_drawedVerts[0][localy] - v1[localy]; 47 double dy = m_drawedVerts[0][localy] - v1[localy];
48 return Grid::Snap (sqrt ((dx * dx) + (dy * dy)), Grid::Coordinate); 48 return snapToGrid (sqrt ((dx * dx) + (dy * dy)), Grid::Coordinate);
49 } 49 }
50 50
51 return 0.0; 51 return 0.0;
52 } 52 }
53 53

mercurial