From 5a98bfd8ef5c9447b96aa1942402d2d0b825ee1e Mon Sep 17 00:00:00 2001
From: Alexander Rose <alex.rose@rcsb.org>
Date: Wed, 11 Dec 2019 15:22:49 -0800
Subject: [PATCH] added StructureElement.Location.areEqual

---
 src/mol-model/structure/structure/element/location.ts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/mol-model/structure/structure/element/location.ts b/src/mol-model/structure/structure/element/location.ts
index 92c027e3e..bbd002dbb 100644
--- a/src/mol-model/structure/structure/element/location.ts
+++ b/src/mol-model/structure/structure/element/location.ts
@@ -39,6 +39,10 @@ namespace Location {
         return !!x && x.kind === 'element-location';
     }
 
+    export function areEqual(a: Location, b: Location) {
+        return a.unit === b.unit && a.element === b.element
+    }
+
     const pA = Vec3.zero(), pB = Vec3.zero();
     export function distance(a: Location, b: Location) {
         a.unit.conformation.position(a.element, pA);
-- 
GitLab