Ejemplo n.º 1
0
        public static Color3f operator *(Color3f a, Color3f b)
        {
            Color3f result = new Color3f();

            result.X = a.X * b.X;
            result.Y = a.Y * b.Y;
            result.Z = a.Z * b.Z;

            return(result);
        }
Ejemplo n.º 2
0
        public static Color3f operator +(Color3f a, Vector3d b)
        {
            Color3f result = new Color3f();

            result.X = a.X + b.X;
            result.Y = a.Y + b.Y;
            result.Z = a.Z + b.Z;

            return(result);
        }
Ejemplo n.º 3
0
        public static Color3f operator *(Color3f a, double x)
        {
            Color3f result = new Color3f();

            result.X = x * a.X;
            result.Y = x * a.Y;
            result.Z = x * a.Z;

            return(result);
        }
Ejemplo n.º 4
0
        public static Color3f operator /(Color3f a, double x)
        {
            Color3f result = new Color3f();

            result.X = a.X / x;
            result.Y = a.Y / x;
            result.Z = a.Z / x;

            return(result);
        }