Calculate the 2d height of the rectangle

AI Thread Summary
To calculate the 2D height of a rectangle rotated in 3D about both the x-axis and y-axis, start with the initial point at (x, y, 0). After rotating around the x-axis by angle t, the new coordinates become (x, ycos(t), ysin(t)). When rotating around the y-axis by angle r, the coordinates transform to (xcos(r) - ysin(t)cos(r), ycos(t), ysin(t)sin(r) + xsin(r)). The total height is determined by projecting these points back onto the x-y plane, focusing on the vertical extent from the bottom left to the top right corner. This approach simplifies the calculation due to the perpendicular nature of the rotation axes.
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))
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top