MemoryAPI.Navigation.Position.Equals C# (CSharp) Метод

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool
        public override bool Equals(object obj)
        {
            var other = obj as Position;
            if (other == null) return false;

            var deviation = Math.Abs(this.X - other.X) +
                Math.Abs(this.Y - other.Y) +
                Math.Abs(this.Z - other.Z) +
                Math.Abs(this.H - other.H);

            return Math.Abs(deviation) <= 0;
        }