mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 18:38:28 +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
|
||||
// is `radius`)
|
||||
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()
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user