Created
June 14, 2022 09:01
-
-
Save aqua30/f6428302a8f2e751cf8342fc3ce4a735 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 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