Calculate the 2d height of the rectangle

  • Context: Undergrad 
  • Thread starter Thread starter primalvisions
  • Start date Start date
  • Tags Tags
    2d Height Rectangle
Click For Summary

Discussion Overview

The discussion revolves around calculating the 2D height of a rectangle that is being rotated in 3D space about multiple axes (the x-axis and y-axis). Participants explore the implications of these rotations on the rectangle's dimensions as viewed in an orthographic projection.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant describes the problem of determining the height of a rectangle after it has been rotated about the x-axis and then the y-axis, seeking clarity on how to calculate this height in a 2D view.
  • Another participant requests clarification on the rectangle's position and the definition of height, specifically whether it refers to the projection onto the x-y plane or the z-axis.
  • A participant confirms that the rectangle is centered on the x-y plane and specifies that height refers to the distance projected back onto the x-y plane after the rotations.
  • One participant explains the mathematical transformations involved in rotating a point around the x-axis and y-axis, detailing the coordinates after each rotation and noting a potential issue with the direction of rotation affecting the outcome.

Areas of Agreement / Disagreement

Participants generally agree on the need to clarify the rectangle's position and the definition of height. However, there are differing interpretations regarding the implications of the rotations and the resulting calculations, indicating that the discussion remains unresolved.

Contextual Notes

The discussion includes assumptions about the rectangle's initial position and the angles of rotation, which may affect the calculations. There is also an acknowledgment of potential complications arising from the direction of rotation.

primalvisions
Messages
2
Reaction score
0
I have a rectangle i am rotating in 3d on multiple axis. i am trying to calculate the 2d height of the rectangle and I am quite lost.

For example, if i rotate the rectangle on the x-axis so the top of the rectangle comes forward and the bottom moves back. i can calculate the height of this fine.

But then i rotate it on the y-axis so the left of the rect moves to the right and the right hand side moves left.

Whats the total height from the bottom left corner to the top right corner extent when rotated on 2 axis?

Its for an orthographic view of the object where you show the front, top and side views of the 3d object.

Any clue how i can calculate this?

Cheers =)
 
Mathematics news on Phys.org
Can you give it a better description as to where the rectangle is (centered on the x-y plane is what it sounds like)? And what is your definition of height here? You mean the distance when you project the rotated rectangle back onto x-y plane? Or the distance when projected onto the z-axis?
 
yes it is centered on the x-y plane and yes the height when projected back onto the x-y plane.

the total distance from the bottom to the top in a 2d view when rotated in 3d about the x-axis then the y-axis.

=)
 
Fortunately the axes of rotation are perpendicular, so you have an easy time doing this.

If you start off with a point at (x,y,0) and you rotate about the x-axis by an angle t, the new point you get is

(x,ycos(t),ysin(t)).

Since you know the x coordinate of the point is unchanged, you can see this by just considering the rotation of the point (y,0) in the y-z plane around the origin by an angle of t)

Now for a caveat. When I decided I was going around by an angle t, that's the angle you see when you look at the y-z plane such that y is horizontal, and z is the vertical axis (which is how you defined it).

Next we look at the x-z axis. The point (x,ysin(t)) is rotated by an angle of r - we omit the y coordinate since it's fixed when rotating about the y axis. Now we hit a problem here, since the left of the rectangle moves to the right regardless of which direction you rotate it in. I'll assume the left of the rectangle is being rotated upwards, if it's moving down just use -r here. Then the new point is
(xcos(r)-ysin(t)cos(r),ysin(t)sin(r) + xsin(r)). so going back into three dimensions we get

(xcos(r)-ysin(t)cos(r),ycos(t),ysin(t)sin(r)+xsin(r))
 

Similar threads

Replies
8
Views
6K
Replies
25
Views
2K
  • · Replies 111 ·
4
Replies
111
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
14
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
3
Views
1K