Skip to content

Instantly share code, notes, and snippets.

@aqua30
Created June 14, 2022 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aqua30/f6428302a8f2e751cf8342fc3ce4a735 to your computer and use it in GitHub Desktop.
Save aqua30/f6428302a8f2e751cf8342fc3ce4a735 to your computer and use it in GitHub Desktop.
/** calculating the connection points */
for (i in 1 until coordinates.size) {
controlPoints1.add(PointF((coordinates[i].x + coordinates[i - 1].x) / 2, coordinates[i - 1].y))
controlPoints2.add(PointF((coordinates[i].x + coordinates[i - 1].x) / 2, coordinates[i].y))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment