conditionalSelectFrom method

  1. @override
PallasPoint conditionalSelectFrom({
  1. required PallasPoint a,
  2. required PallasPoint b,
  3. required bool choice,
})
override

Implementation

@override
PallasPoint conditionalSelectFrom({
  required PallasPoint a,
  required PallasPoint b,
  required bool choice,
}) {
  return PallasPoint(
    x: PallasFp.conditionalSelect(a.x, b.x, choice),
    y: PallasFp.conditionalSelect(a.y, b.y, choice),
    z: PallasFp.conditionalSelect(a.z, b.z, choice),
  );
}