public static Color GetColor(Sections section, int group_id, int entry_id, PointID point = PointID.None) { int Red = (((int)section) << 2) | ((int)point & 3); int Green = group_id; int Blue = entry_id; return(Color.FromArgb(255, Red, Green, Blue)); }
public BezierPoint(Point _coord, PointID id) { this.Coord = _coord; this.Id = id; UpdateRect(); }
public void AddPoint(Point point, PointID id) { this.Add(new BezierPoint(point, id)); }
public void AddPoint(int x, int y, PointID id) { this.Add(new BezierPoint(new Point(x, y), id)); }
/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns> public override int GetHashCode() { return(Stress.GetHashCode() ^ Strain.GetHashCode() ^ PointID.GetHashCode()); }