Example #1
0
        internal static Matrix3 ToManaged(Matrix3_StructInternal _internal_struct)
        {
            var _external_struct = new Matrix3();

            _external_struct.Xx = _internal_struct.Xx;
            _external_struct.Xy = _internal_struct.Xy;
            _external_struct.Xz = _internal_struct.Xz;
            _external_struct.Yx = _internal_struct.Yx;
            _external_struct.Yy = _internal_struct.Yy;
            _external_struct.Yz = _internal_struct.Yz;
            _external_struct.Zx = _internal_struct.Zx;
            _external_struct.Zy = _internal_struct.Zy;
            _external_struct.Zz = _internal_struct.Zz;

            return(_external_struct);
        }
Example #2
0
        internal static Matrix3_StructInternal ToInternal(Matrix3 _external_struct)
        {
            var _internal_struct = new Matrix3_StructInternal();

            _internal_struct.Xx = _external_struct.Xx;
            _internal_struct.Xy = _external_struct.Xy;
            _internal_struct.Xz = _external_struct.Xz;
            _internal_struct.Yx = _external_struct.Yx;
            _internal_struct.Yy = _external_struct.Yy;
            _internal_struct.Yz = _external_struct.Yz;
            _internal_struct.Zx = _external_struct.Zx;
            _internal_struct.Zy = _external_struct.Zy;
            _internal_struct.Zz = _external_struct.Zz;

            return(_internal_struct);
        }