public static Matrix4 ToMatrix4(this FbxAMatrix value) { // value.Get( rowIndex, columnIndex ) return(new Matrix4( value.Get(0, 0), value.Get(0, 1), value.Get(0, 2), value.Get(0, 3), value.Get(1, 0), value.Get(1, 1), value.Get(1, 2), value.Get(1, 3), value.Get(2, 0), value.Get(2, 1), value.Get(2, 2), value.Get(2, 3), value.Get(3, 0), value.Get(3, 1), value.Get(3, 2), value.Get(3, 3) )); //return new Mat4( // value.A1, value.B1, value.C1, value.D1, // value.A2, value.B2, value.C2, value.D2, // value.A3, value.B3, value.C3, value.D3, // value.A4, value.B4, value.C4, value.D4 ); }
public static Matrix4F ToMatrix4F(this FbxAMatrix value) { // value.Get( rowIndex, columnIndex ) return(new Matrix4F( (float)value.Get(0, 0), (float)value.Get(0, 1), (float)value.Get(0, 2), (float)value.Get(0, 3), (float)value.Get(1, 0), (float)value.Get(1, 1), (float)value.Get(1, 2), (float)value.Get(1, 3), (float)value.Get(2, 0), (float)value.Get(2, 1), (float)value.Get(2, 2), (float)value.Get(2, 3), (float)value.Get(3, 0), (float)value.Get(3, 1), (float)value.Get(3, 2), (float)value.Get(3, 3) )); }