using System.IO; namespace fis.Vid.Visuals { public class VinnoPoint { public double X { get; } public double Y { get; } public VinnoPoint(double x, double y) { X = x; Y = y; } public override string ToString() { return $"X:{X},Y:{Y}"; } protected bool Equals(VinnoPoint other) { return X.Equals(other.X) && Y.Equals(other.Y); } public override bool Equals(object obj) { if (ReferenceEquals(null, obj)) return false; if (ReferenceEquals(this, obj)) return true; if (obj.GetType() != this.GetType()) return false; return Equals((VinnoPoint) obj); } public override int GetHashCode() { unchecked { return (X.GetHashCode()*397) ^ Y.GetHashCode(); } } public static bool operator ==(VinnoPoint left, VinnoPoint right) { return Equals(left, right); } public static bool operator !=(VinnoPoint left, VinnoPoint right) { return !Equals(left, right); } } }