first post here. I am doing a project in JavaFX where a user can click on the screen to put out a few points, creating a path made of cubic curves. The path is supposed to represent the path a person walks from an overhead view.
I want to store the data of how this person walks in a database with a resolution of 1 second.
My problem is: How do I get the X and Y position of a point on the path?
I guess I could create a PathTransition, make an object follow that path and use a some timer to output that object's position at a certain interval... but that wouldn't be useful if we imagine that I want to create data for a few hours of walking around. I've been searching for several weeks on Google, and here, but have failed to find anything that helps me. Maybe it's just me not knowing what exactly to search for, or maybe it isn't even possible to do what I want. I got a suggestion to "solve the curves numerically" to get the positions, but can't find anything on how to do that with cubic curves (or cubic splines, b-splines, etc.)... but that's an option if anyone can point me in the right direction.
Any idea or hint would help me a lot, since I'm not too sure what is possible even.