question: protected static void updateBezierControlPoints ( CubicCurve wire ) { double yOffset = getBezierYOffset ( wire ) ; wire . setControlX1 ( wire . getStartX ( ) ) ; wire . setControlY1 ( wire . getStartY ( ) + yOffset ) ; wire . setControlX2 ( wire . getEndX ( ) ) ; wire . setControlY2 ( wire . getEndY ( ) - yOffset ) ; }
target:  Updates the Bezier offset (curviness) according to the current start and end positions. 