Simplify match

This commit is contained in:
Hanno Braun 2023-02-16 12:55:39 +01:00
parent dc2bfaa0bd
commit db4a0d5ffa

View File

@ -39,10 +39,8 @@ impl Arc {
let center = {
let f = match (clockwise_turn, more_than_half_turn) {
(false, false) => Scalar::ONE,
(false, true) => -Scalar::ONE,
(true, false) => -Scalar::ONE,
(true, true) => Scalar::ONE,
(false, false) | (true, true) => Scalar::ONE,
(false, true) | (true, false) => -Scalar::ONE,
};
let unit_vector_p0_to_p1 =