Example #1
0
        public Color4f(IColor4 other)
        {
            ITuple4_Float _other = other.AsTupleFloat();

            this.Red   = _other.X;
            this.Green = _other.Y;
            this.Blue  = _other.Z;
            this.Alpha = _other.W;
        }
Example #2
0
        bool IEquatable <IColor4> .Equals(IColor4 other)
        {
            ITuple4_Float _other = other.AsTupleFloat();

            return(this.Equals(_other.X, _other.Y, _other.Z, _other.W));
        }
Example #3
0
        bool IEpsilonEquatable <IColor4> .EpsilonEquals(IColor4 other, double epsilon)
        {
            ITuple4_Float _other = other.AsTupleFloat();

            return(this.EpsilonEquals(_other.X, _other.Y, _other.Z, _other.W, (float)epsilon));
        }