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); }
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); }
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); }
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); }