export function makeOrderedPairKey(a: number, b: number) {
  const left = Math.trunc(Math.min(a, b));
  const right = Math.trunc(Math.max(a, b));
  return `${left}-${right}`;
}

export function makePairLinkFeatureId(a: number, b: number, suffix?: string) {
  const pair = makeOrderedPairKey(a, b);
  return suffix ? `pair-${pair}-${suffix}` : `pair-${pair}`;
}

export function makeFcSegmentFeatureId(a: number, b: number, segmentIndex: number) {
  const pair = makeOrderedPairKey(a, b);
  return `fc-${pair}-${segmentIndex}`;
}

export function makeFleetCircleFeatureId(ownerKey: string) {
  return `fleet-${ownerKey}`;
}
