| 222 | |
| 223 | |
| 224 | math::Vec CableWidget::getInputPos() { |
| 225 | if (inputPort) { |
| 226 | return inputPort->getRelativeOffset(inputPort->box.zeroPos().getCenter(), APP->scene->rack); |
| 227 | } |
| 228 | else if (hoveredInputPort) { |
| 229 | return hoveredInputPort->getRelativeOffset(hoveredInputPort->box.zeroPos().getCenter(), APP->scene->rack); |
| 230 | } |
| 231 | else { |
| 232 | return APP->scene->rack->getMousePos(); |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | |
| 237 | math::Vec CableWidget::getOutputPos() { |
nothing calls this directly
no test coverage detected