48
edits
No edit summary |
No edit summary |
||
Line 42: | Line 42: | ||
<source lang="csharp"> | <source lang="csharp"> | ||
Matrix4x4 rot = new Matrix4x4(); | Matrix4x4 rot = new Matrix4x4(); | ||
rot.SetTRS(new Vector3(0,0,0),q,new Vector3(1,1,1)); //It’s the same “q” that | rot.SetTRS(new Vector3(0,0,0),q,new Vector3(1,1,1)); //It’s the same “q” that used above | ||
Vector4 vy = rot.GetColumn(1); | Vector4 vy = rot.GetColumn(1); | ||
Vector4 vz = rot.GetColumn(2); | Vector4 vz = rot.GetColumn(2); |
edits