(Draggable x, Vec3 nodePosition, Vec2 mousePosition)
| 308 | |
| 309 | if (x.source != null && x.source.attributes.has(inside)) { |
| 310 | Viewport v = x.source.attributes.get(inside); |
| 311 | Vec2 at = v.viewportToDrawingSpace(nodePosition); |
| 312 | return at.distance(mousePosition); |
| 313 | } |
| 314 | |
| 315 | return nodePosition.toVec2().distance(mousePosition); |
| 316 | } |
| 317 | |
| 318 | private Vec3 applyDrag(Draggable x, Vec2 mouseWas, Vec2 mouseNow, Vec3 initialPosition) { |
| 319 | if (x.source != null && x.source.attributes.has(inside)) { |
| 320 | System.out.println(" this is 3d"); |
| 321 | Viewport v = x.source.attributes.get(inside); |
| 322 |
no test coverage detected