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 |