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 center = {
|
||||||
let f = match (clockwise_turn, more_than_half_turn) {
|
let f = match (clockwise_turn, more_than_half_turn) {
|
||||||
(false, false) => Scalar::ONE,
|
(false, false) | (true, true) => Scalar::ONE,
|
||||||
(false, true) => -Scalar::ONE,
|
(false, true) | (true, false) => -Scalar::ONE,
|
||||||
(true, false) => -Scalar::ONE,
|
|
||||||
(true, true) => Scalar::ONE,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let unit_vector_p0_to_p1 =
|
let unit_vector_p0_to_p1 =
|
||||||
|
Loading…
Reference in New Issue
Block a user