Make computation more clear

This commit is contained in:
Hanno Braun 2025-04-22 12:36:00 +02:00
parent c0102265bc
commit a692daf053

View File

@ -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()
};