mac-comp127 / kilt-graphics

Graphics and UI library for learning software development principles in Java
https://mac-comp127.github.io/kilt-graphics/
2 stars 17 forks source link

Methods to translate points between different GraphicsObjects’ coordinate systems #29

Open anguyen6262 opened 1 year ago

anguyen6262 commented 1 year ago

Problem

What motived you to write this request? What problem do you need to solve? I'm making a visualization of a graph and need the centers of the vertices so I can draw edges between them.

If you want to include some sample code, format it like this:

Desired solution

What new capability do you suggest adding to kilt-graphics? A method that allows to translate points between graphicsObjects coordinate system.

How do you imagine this new feature would behave?

Alternatives considered

Are there any other solutions or approaches you've considered? I've tried using a reference line to help create the vertices, but they still have the same issue of from them being in their own coordinate systems.

Other approaches you rejected? Other solutions that also might work?