fmt: ran clippy

This commit is contained in:
2026-05-13 13:27:37 +02:00
parent 194328d92f
commit d4f4b6a715
8 changed files with 14 additions and 14 deletions

View File

@@ -75,10 +75,10 @@ impl Hittable for Sphere {
fn to_uv(&self, point: &Vec3) -> Vec3 {
let p = *point - self.center;
// TODO: add rotated texture support
return Vec3::new(
Vec3::new(
0.5 + p.y().atan2(*p.x()) / (2. * PI),
1. - (p.z() / self.radius).acos() / PI,
0.0,
);
)
}
}