Jump to content
  • Advertisement
Sign in to follow this  
Lumalalelo

Matrix base-transformation

This topic is 3049 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi everyone ! ok, to be honest this isn't something i need for a game, it's an important thing i need to understand for my upcoming linear algebra exam ^^; However i wasn't able to get the hang to it via my script or google. -------------------------------------------------------------------------------- the problem is i have a plane in the "point-direction"-form like: r = t1 * vector + t2 * vector2 r = (2 -1 1) + t1*(1 0 1) + t2* (1 1 1) I should make a matrix S via base-transformation so that i can reflect on this plane. (there is an excercise-part b) where i get 3 points that i should reflect with the help of the matrix S) but my question is only how i can construct this matrix S ? -------------------------------------------------------------------------------- i assume that the matrix is: 2 1 1 -1 0 1 1 1 1 but then i have a plane whose span-vectors aren't orthogonal... so how can i find the right base for this matrix ? thank you very much for your time ! Chris

Share this post


Link to post
Share on other sites
Advertisement
You orthogonalize and normalize the matrix. All points in a plane can be referanced by a point in the plane and two vectors in the plane that are not parallel. P+a*X+b*Y, P is the point and (a,b) is the coordinates of the point given the basis X, Y. So M*V = v1*C1 + v2*C2 + v3*C3 = a*X + b*Y + 1*P. Three non-linear points in a plane gives a point and two vectors in the plane.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!