Пример #1
0
        public static AVec InsertUInt16(AVec Vec, int Index, ushort Value)
        {
            switch (Index)
            {
            case 0: Vec.H0 = Value; break;

            case 1: Vec.H1 = Value; break;

            case 2: Vec.H2 = Value; break;

            case 3: Vec.H3 = Value; break;

            case 4: Vec.H4 = Value; break;

            case 5: Vec.H5 = Value; break;

            case 6: Vec.H6 = Value; break;

            case 7: Vec.H7 = Value; break;

            default: throw new ArgumentOutOfRangeException(nameof(Index));
            }

            return(Vec);
        }
Пример #2
0
        public static AVec InsertDouble(AVec Vec, int Index, double Value)
        {
            switch (Index)
            {
            case 0: Vec.D0 = Value; break;

            case 1: Vec.D1 = Value; break;

            default: throw new ArgumentOutOfRangeException(nameof(Index));
            }

            return(Vec);
        }
Пример #3
0
        public static AVec InsertUInt64(AVec Vec, int Index, ulong Value)
        {
            switch (Index)
            {
            case 0: Vec.X0 = Value; break;

            case 1: Vec.X1 = Value; break;

            default: throw new ArgumentOutOfRangeException(nameof(Index));
            }

            return(Vec);
        }
Пример #4
0
        public static AVec InsertSingle(AVec Vec, int Index, float Value)
        {
            switch (Index)
            {
            case 0: Vec.S0 = Value; break;

            case 1: Vec.S1 = Value; break;

            case 2: Vec.S2 = Value; break;

            case 3: Vec.S3 = Value; break;

            default: throw new ArgumentOutOfRangeException(nameof(Index));
            }

            return(Vec);
        }
Пример #5
0
        public static AVec InsertUInt32(AVec Vec, int Index, uint Value)
        {
            switch (Index)
            {
            case 0: Vec.W0 = Value; break;

            case 1: Vec.W1 = Value; break;

            case 2: Vec.W2 = Value; break;

            case 3: Vec.W3 = Value; break;

            default: throw new ArgumentOutOfRangeException(nameof(Index));
            }

            return(Vec);
        }
Пример #6
0
        public static AVec InsertByte(AVec Vec, int Index, byte Value)
        {
            switch (Index)
            {
            case 0:  Vec.B0 = Value; break;

            case 1:  Vec.B1 = Value; break;

            case 2:  Vec.B2 = Value; break;

            case 3:  Vec.B3 = Value; break;

            case 4:  Vec.B4 = Value; break;

            case 5:  Vec.B5 = Value; break;

            case 6:  Vec.B6 = Value; break;

            case 7:  Vec.B7 = Value; break;

            case 8:  Vec.B8 = Value; break;

            case 9:  Vec.B9 = Value; break;

            case 10: Vec.B10 = Value; break;

            case 11: Vec.B11 = Value; break;

            case 12: Vec.B12 = Value; break;

            case 13: Vec.B13 = Value; break;

            case 14: Vec.B14 = Value; break;

            case 15: Vec.B15 = Value; break;

            default: throw new ArgumentOutOfRangeException(nameof(Index));
            }

            return(Vec);
        }