Determining the rotation matrix and subsequent translation which needs to be applied to a plane so that it aligns to an axis plane?

39 Views Asked by At

Hi guys (and girls too), This might be the stupidest question to a math versed person but I'm having a lot of trouble and would appreciate it if someone could explain it please:

I would like to determine what angle of rotation I should apply to some plane in 3D whose normal form I have been given (in Matlab those are 4 (a,b,c,d) values representing aX+bY+c*Z=d) so that after the applied rotation it aligns to an axis plane (i.e. XY plane which should have a normal form written as 1*X+1*Y+0*Z=1 <- unless I'm mistaking this)...

I'm sure it needs to be done using the normalized form thus I should divide the a,b,c values by d first, then try do something with cross product of the planes (as that is dependent on the cos of the angle between such vectors I think) but for the love of everything I am just baffled as to where and how to start with it - especially having seen some explanations using quaternions and similar matrix solutions that seem to be more powerful.

Can anyone help me please? TIA