Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/** 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