diff --git a/src/mol-model/structure/structure/element/location.ts b/src/mol-model/structure/structure/element/location.ts index 92c027e3e82858c5be4dca95c1adca238bf91b9b..bbd002dbbb0bb5589fc7617901aa05509a958de3 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);