- #1
Jripe
- 8
- 0
How would you go about converting from a Cartesian coordinate plane to one where (0,0) is in the top left hand corner?
Jripe said:How would you go about converting from a Cartesian coordinate plane to one where (0,0) is in the top left hand corner?
Jripe said:Ok.. maybe I should have put my question a bit better, with a bit more info on what I need this for.
What I have is an object, inside a screen, that is inside another screen. The object can move, and the screen inside the screen is partially-fixed onto the object. If I move the mouse to the left, the screen will follow it to the left, up until the object is on the very right side of the screen which stops it from moving further.
The objects coordinates are based on the large screens origin, and my mouse coordinates are based on the smaller screens plane, which starts in the top left 0,0.
What I am trying to do is to get the mouses coordinates relative to the larger screen.
The purpose of converting between coordinate planes is to accurately represent a point or object in different coordinate systems. This can be useful for navigation, mapping, and other applications where different coordinate systems are used.
The most common coordinate planes used in conversion are the Cartesian coordinate system (x-y plane) and the polar coordinate system (r-θ plane).
To convert a point from one coordinate plane to another, you first need to determine the coordinates of the point in the original plane. Then, you can use mathematical formulas or geometric constructions to find the coordinates of the point in the new plane.
The key differences between Cartesian and polar coordinates include the way they represent points (rectangular vs. polar coordinates), the number of coordinates needed to represent a point (2 vs. 2 or 3), and the use of different units (length vs. distance and angle).
Yes, there are some special cases when converting between coordinate planes. For example, when converting from polar to Cartesian coordinates, you may need to consider the quadrant of the point to determine the sign of the x and y coordinates. Additionally, some coordinate systems may have different orientations or scales that need to be taken into account.