public static void DrawCurvedLine(ImDrawListPtr drawList, Vector2 start, Vector2 end, uint color, Vector2 curveStrength, float thickness) { var direction = (end - start).normalized; direction *= direction; drawList.AddBezierCurve( Scale(start - ScrollPosition), Scale(start + direction * curveStrength - ScrollPosition), Scale(end - direction * curveStrength - ScrollPosition), Scale(end - ScrollPosition), color, thickness ); }