Coordinate translation on a rotating plane

In summary, the conversation discusses a problem involving converting mouse coordinates to relative coordinates on an object that can be translated, scaled, and rotated. The formula for solving this problem involves taking into account the height and width of the object, the rotation angle, the point of rotation, and the absolute horizontal line. The order of the operations (rotation, scaling, translation) is important and will affect the final formula.
  • #1
newjerseyrunner
1,533
637
I have this problem where I need to convert from mouse coordinates on the screen with relative coordinates on an object that can be arbitrarily translated, scaled, and rotated around another arbitrary position. I've already normalized all of the units to be the same (pixels) but the trig is eluding me right now.

h - height of normalized object
w - width of normalized object
s - scalar
theta - rotation angle
(ox, oy) - the point at which the object rotates
(x, y) - the point along absolute horizontal and vertical from the rotation point
(ix, iy) - the unknown

the blue line is the absolute horizontal, but it's value is arbitrary
theta, x, y, ix, iy, ox, and oy are real numbers
w, h, s are positive real numbers

image.jpg


ix = (ox * s + acos(90 - theta) * y + acos(theta) * x) / s;
iy = (oy * s + asin(90 - theta) * y + asin(theta) * x) / s;
Is that right?
 
Last edited:
Mathematics news on Phys.org
  • #2
There are three operations being performed: rotation, scaling and translation. The result depends on the order of operations, and so the formula will also depend on that.

What is the order of the three operations?
 

1. What is coordinate translation on a rotating plane?

Coordinate translation on a rotating plane is the process of converting coordinates from one coordinate system to another while taking into account the rotation of the plane. It allows for the accurate measurement and representation of objects and points on a rotating plane.

2. Why is coordinate translation on a rotating plane important?

Coordinate translation on a rotating plane is important because it allows for the accurate representation and measurement of objects and points on a rotating plane. Without it, the coordinates would not accurately reflect the position of an object or point due to the rotation of the plane.

3. How is coordinate translation on a rotating plane calculated?

Coordinate translation on a rotating plane is calculated using mathematical equations and formulas that take into account the rotation of the plane. These equations may vary depending on the specific coordinate systems being used.

4. What are the common coordinate systems used in coordinate translation on a rotating plane?

The most common coordinate systems used in coordinate translation on a rotating plane are Cartesian coordinates, polar coordinates, and spherical coordinates. Other coordinate systems, such as cylindrical coordinates, may also be used depending on the situation.

5. How is coordinate translation on a rotating plane applied in real-world situations?

Coordinate translation on a rotating plane is commonly used in navigation, astronomy, and engineering, among other fields. It allows for accurate measurements and calculations to be made on objects and points that are constantly moving or rotating, such as satellites or celestial bodies.

Similar threads

Replies
1
Views
730
Replies
2
Views
1K
  • General Math
Replies
7
Views
1K
  • Precalculus Mathematics Homework Help
Replies
16
Views
4K
  • Introductory Physics Homework Help
Replies
1
Views
360
Replies
20
Views
3K
Replies
11
Views
1K
  • General Math
Replies
3
Views
2K
  • General Math
Replies
2
Views
2K
  • Linear and Abstract Algebra
Replies
2
Views
1K
Back
Top