Inline redundant variable

This commit is contained in:
Hanno Braun 2024-08-22 21:02:32 +02:00
parent eef3ac3a4f
commit 961b72ee5d

View File

@ -86,11 +86,11 @@ impl SurfaceGeom {
Triangle::from(triangle_points_in_global_space)
}
Path::Line(line) => {
let a = line.direction();
let b = self.v;
let point_global =
line.origin() + a * point_surface.u + b * point_surface.v;
let point_global = line.origin()
+ line.direction() * point_surface.u
+ b * point_surface.v;
// We don't need to approximate a plane, so our triangle can be
// arbitrarily large or small. Here we choose the smallest