mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-28 18:15:53 +00:00
Simplify match
This commit is contained in:
parent
dc2bfaa0bd
commit
db4a0d5ffa
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user