# Create plane matrix from three 3d points

I have three 3d points (x, y, z). I am trying to create a 3d plane and get a 3d Matrix from those points.

The XYZ values are not accurate in this case but should give an idea on what I am looking. I am working in JavaScript but any pseudo code will do.

• Calculating a plane equation from three points is easy (google "plane from three points" and you'll find the formulas), but what matrix are you trying to create? Please clarify. – Nathan Reed Jun 11 '12 at 16:29
• A transformation matrix. Something like you find in CSS3. A 16 value transform matrix: 1, 0, 0, 0, 0, -0.416146844625473, 0.9092974066734314, 0, 0, -0.9092974066734314, -0.416146844625473, 0, 100, 100, 100, 1 – Mircea Jun 11 '12 at 16:31
• Yes, but a matrix is a transformation between two coordinate systems. What coordinate systems are you trying to go between? – Nathan Reed Jun 11 '12 at 16:38
• I am trying to get the matrix of the new created plane. Not really sure that I am explaining this right. Thanks! – Mircea Jun 11 '12 at 16:47
• @Mircea I suggest describing what you're trying to accomplish instead of asking how this one, impossible step can be done. It's clear from the confusion that more information is needed. – Patrick Hughes Jun 12 '12 at 18:05