M
M
mr_firuzinho2018-12-05 19:01:55
Java
mr_firuzinho, 2018-12-05 19:01:55

How to create a Cartesian coordinate system in Java and position points relative to it?

Hello, how can I organize a Cartesian coordinate system in Java and position points relative to it?
I drew the coordinate axes, divided them into cells, now I need the points that I draw using drawLine () to be located relative to the Cartesian system that are drawn. Now, I have some points that have negative coordinates, but you can't draw them in the Java coordinate system. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2018-12-05
@mr_firuzinho

Pozhet affine transformation.
In the standard library https://docs.oracle.com/javase/7/docs/api/java/awt...
Or in geotools docs.geotools.org/stable/userguide/tutorial/affine... (this is my own I use)
Well, read https://en.m.wikipedia.org/wiki/Affine_transformation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question