mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-07 19:38:29 +00:00
Make computation more clear
This commit is contained in:
parent
c0102265bc
commit
a692daf053
@ -67,8 +67,9 @@ impl Sketch {
|
|||||||
// - `c` (hypotenuse): `end` to circle center (which
|
// - `c` (hypotenuse): `end` to circle center (which
|
||||||
// is `radius`)
|
// is `radius`)
|
||||||
let a = start_to_end.magnitude() / 2.;
|
let a = start_to_end.magnitude() / 2.;
|
||||||
|
let c = radius;
|
||||||
|
|
||||||
let distance_square = radius * radius - a * a;
|
let distance_square = c * c - a * a;
|
||||||
distance_square.sqrt()
|
distance_square.sqrt()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user