float x1 = nodeFrom.x();
float y1 = nodeFrom.y();
//Edge vector
Vec2f edgeVector = new Vec2f(x2 - x1, y2 - y1);
edgeVector.normalize();
//Get collision distance between nodeTo and arrow point
double angle = Math.atan2(y2 - y1, x2 - x1);
float collisionDistance = targetModel.getCollisionDistance(angle);