Skip to content
Snippets Groups Projects
Commit 5a98bfd8 authored by Alexander Rose's avatar Alexander Rose
Browse files

added StructureElement.Location.areEqual

parent 149e6ebf
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,10 @@ namespace Location { ...@@ -39,6 +39,10 @@ namespace Location {
return !!x && x.kind === 'element-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(); const pA = Vec3.zero(), pB = Vec3.zero();
export function distance(a: Location, b: Location) { export function distance(a: Location, b: Location) {
a.unit.conformation.position(a.element, pA); a.unit.conformation.position(a.element, pA);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment