Beispiel #1
0
        public static IOpTuple4_Integer AsOpTupleInteger(this IOpTuple4 v)
        {
            IOpTuple4_Integer ret = v as IOpTuple4_Integer;

            if (ret != null)
            {
                return(ret);
            }
            return(VectorUtils.Convert <IOpTuple4_Integer>(v));
        }
Beispiel #2
0
        public static IOpTuple4_Byte AsOpTupleByte(this IOpTuple4 v)
        {
            IOpTuple4_Byte ret = v as IOpTuple4_Byte;

            if (ret != null)
            {
                return(ret);
            }
            return(VectorUtils.Convert <IOpTuple4_Byte>(v));
        }
Beispiel #3
0
        public static IOpTuple4_Float AsOpTupleFloat(this IOpTuple4 v)
        {
            IOpTuple4_Float ret = v as IOpTuple4_Float;

            if (ret != null)
            {
                return(ret);
            }
            return(VectorUtils.Convert <IOpTuple4_Float>(v));
        }
Beispiel #4
0
        public void Get(IOpTuple4 setter)
        {
            IOpTuple4_Double _setter = setter.AsOpTupleDouble();

            _setter.Set(this.X, this.Y, this.Z, this.W);
        }
Beispiel #5
0
        public void Get(IOpTuple4 setter)
        {
            IOpTuple4_Byte _setter = setter.AsOpTupleByte();

            _setter.Set(this.Red, this.Green, this.Blue, this.Alpha);
        }
Beispiel #6
0
        public void Get(IOpTuple4 setter)
        {
            IOpTuple4_Float _setter = setter.AsOpTupleFloat();

            _setter.Set(this.Red, this.Green, this.Blue, this.Alpha);
        }