My goal is to create a simple translation and rotation gizmo in JavaFX.
There are plenty of examples of how this can be implemented in C++ (e.g. https://nelari.us/post/gi