public override int GetHashCode() { int prime = 37; int hash = 1; hash = prime * hash + SideLength.GetHashCode(); return(hash); }
public override Dictionary <string, Func <string> > GetCurrentData() { return(new Dictionary <string, Func <string> > { { "GapFactor", () => GapFactor.ToString() }, { "SideLength", () => SideLength.ToString() }, { "CubeSize", () => CubeSize.ToString() } }); }
public override Dictionary <string, Func <string> > GetCurrentData() { return(new Dictionary <string, Func <string> > { { "CubeInteractRadius", () => CubeInteractionRadius.ToString() }, { "GapFactor", () => GapFactor.ToString() }, { "SideLength", () => SideLength.ToString() }, { "Color", () => Color.r + " " + Color.g + " " + Color.b }, { "CubeSize", () => CubeSize.ToString() } }); }
public override Dictionary <string, Func <string> > GetCurrentData() { return(new Dictionary <string, Func <string> > { { "GapFactor", () => GapFactor.ToString() }, { "SideLength", () => SideLength.ToString() }, { "PositiveColor", () => PositiveColor.r + " " + PositiveColor.g + " " + PositiveColor.b }, { "NegativeColor", () => NegativeColor.r + " " + NegativeColor.g + " " + NegativeColor.b }, { "CubeSize", () => CubeSize.ToString() } }); }
public override Dictionary <string, Func <string> > GetCurrentData() { return(new Dictionary <string, Func <string> > { { "CubeInteractRadius", () => CubeInteractionRadius.ToString() }, { "GapFactor", () => GapFactor.ToString() }, { "SideLength", () => SideLength.ToString() }, { "Color", () => Color.r + " " + Color.g + " " + Color.b }, { "CubeSize", () => CubeSize.ToString() }, { "DistanceToTravel", () => AvoidParams.DistanceToTravel.ToString() }, { "DistanceVariation", () => AvoidParams.DistanceVariation.ToString() }, { "Speed", () => AvoidParams.Speed.ToString() }, { "SpeedVariation", () => AvoidParams.SpeedVariation.ToString() } }); }
public int CompareTo(object obj) { if (obj == null) { return(1); } GeometricObject geo = obj as GeometricObject; if (SideLength.CompareTo(geo.SideLength) == 0 && Area.CompareTo(geo.Area) == 0) { return(0); } else if (SideLength.CompareTo(geo.SideLength) == -1 && Area.CompareTo(geo.Area) == -1) { return(-1); } else { return(1); } }