Introduction - If you have any usage issues, please Google them yourself
float midy = (float)(y - (y - lastY)/2)
double phi = Math.atan2(midy-center.y, midx-center.x)
String s = neighbors[i-1]
double sw = font.getStringBounds(s, frc).getWidth()
double diag = Math.sqrt(sw*sw + sh*sh)/2
float sx = (float)(midx - diag*Math.cos(phi) - sw/2)
float sy = (float)(midy - diag*Math.sin(phi)) +