public static ColorMassStructure operator +(ColorMassStructure th, ColorMassStructure th2) { ColorMassStructure cStruct = new ColorMassStructure(); cStruct.R = th.R + th2.R; cStruct.G = th.G + th2.G; cStruct.B = th.B + th2.B; return(cStruct); }
public static ColorMassStructure operator /(ColorMassStructure th, uint val) { ColorMassStructure cStruct = new ColorMassStructure(); cStruct.R = th.R / val; cStruct.G = th.G / val; cStruct.B = th.B / val; return(cStruct); }