ft: ran linter
This commit is contained in:
@@ -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