ft: ran linter

This commit is contained in:
djaidjai committed 2026-04-29 02:11:41 +02:00
1 parent e88422cb2f
commit 388fbcbb8a
12 files changed
+80 -63

No files matched your search

+2 -2
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> {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.