update
All checks were successful
Rust Checks / checks (push) Successful in 1m23s
Rust Checks / checks (pull_request) Successful in 1m22s

This commit is contained in:
CoCo_Sol 2024-02-18 12:09:44 +00:00
parent 2b3037d900
commit 848affbac6

View file

@ -256,7 +256,7 @@ impl<T: Number> HexPosition<T> {
size.0 size.0
* 3f32 * 3f32
.sqrt() .sqrt()
.mul_add(T::to_f32(self.0), 3f32.sqrt() / 2.0 * T::to_f32(self.0)), .mul_add(T::to_f32(self.0), 3f32.sqrt() / 2.0 * T::to_f32(self.1)),
size.1 * (3.0 / 2.0 * T::to_f32(self.1)), size.1 * (3.0 / 2.0 * T::to_f32(self.1)),
) )
} }