Android Question Is there a way to extract points from a path?

NeoTechni

Well-Known Member
Licensed User
Longtime User
I use some really complex code to generate a path, and I don't want to have to copy/paste/modify it to get the points in a different format (for collision detection)
 

NeoTechni

Well-Known Member
Licensed User
Longtime User
About two pages of code that I'd rather.not duplicate. It'd be possible to alter it if we had optional parameters, but otherwise its too big as it is.
 
Upvote 0

NeoTechni

Well-Known Member
Licensed User
Longtime User
The code takes a canvas as it draws directly to it, is about 2 pages long. To alter the code to get the points would require optional parameters so that I could pass in a list, and ignore the canvas. Otherwise I have to pass in an empty list every time I don't need the points, and an empty canvas when I do. And that's too messy. I'd like a way to get the points from the path it makes, without modifying that code, or copy/pasting 2 pages of code and making a different version of it.
 
Upvote 0
Top