ft: ran linter

This commit is contained in:
2026-04-29 02:11:41 +02:00
parent e88422cb2f
commit 388fbcbb8a
12 changed files with 80 additions and 63 deletions

View File

@@ -83,7 +83,7 @@ impl Vec3 {
}
pub fn length_squared(&self) -> f32 {
(self.x * self.x + self.y * self.y + self.z * self.z) as f32
self.x * self.x + self.y * self.y + self.z * self.z
}
pub fn dot(&self, other: &Self) -> f32 {
@@ -123,7 +123,7 @@ impl Vec3 {
let r_out_perp = etai_over_etat * (*self + cos_theta * n);
let r_out_parr = -sqrt((1. - r_out_perp.length_squared()).abs()) * n;
return r_out_perp + r_out_parr;
r_out_perp + r_out_parr
}
pub fn output(self) -> image::Rgb<u8> {