fmt: ran clippy

This commit is contained in:
djaidjai committed 2026-05-13 13:27:37 +02:00
1 parent 194328d92f
commit d4f4b6a715
8 files changed
+14 -14

No files matched your search

+3 -3
View File
@@ -51,7 +51,7 @@ impl Hittable for Circle {
p,
self.normal,
self.material.clone(),
self.normal.dot(&r.dir()) < 0.,
self.normal.dot(r.dir()) < 0.,
*uv.x(),
*uv.y(),
));
@@ -62,10 +62,10 @@ impl Hittable for Circle {
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,
);
)
}
}
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.