[Solved] Change Coordinates directely in the graphe [closed]

Take a look at Oracle’s tutorial: http://docs.oracle.com/javase/tutorial/2d/advanced/user.html They describe how to recognize clicks within the Graphics2D. They also show how to move a single shape. You have to advance this approach a little bit in order to support multiple elements. 1 solved Change Coordinates directely in the graphe [closed]

[Solved] How to calculate shortest distance from path?

Mathematically : As explained in wikipedia the shortest distance between a line and a dot, can be calculated as follows: If the line passes through two points P1=(x1,y1) and P2=(x2,y2) then the distance of (x0,y0) from the line is: Java implimentaion class Point { double x,y; Point(double pX, double pY){ this.x= pX; this.y= pY; } … Read more

[Solved] Coordinate system transformation, 3d projection to 2d plane

The problem can be expressed as finding the 3-by-3 matrix M such that the coordinates of a point P can be converted between the old coordinate system (P_old, 3 rows) and the new coordinate system (P_new, 3 rows). This is an affine transformation: P_old = Center + M * P_new (1) The (matrix-vector) multiplication with … Read more