Inline redundant variable

This commit is contained in:
Hanno Braun 2024-08-26 20:48:10 +02:00
parent d76dd8ad4c
commit dc0c0108d1

View File

@ -65,8 +65,9 @@ impl SurfaceGeom {
) -> (Triangle<3>, [Scalar; 3]) {
let point_surface = point_surface.into();
let line_segment = self.u.line_segment_at([point_surface.u], tolerance);
let [a, b] = line_segment
let [a, b] = self
.u
.line_segment_at([point_surface.u], tolerance)
.map(|point_global| point_global + self.v * point_surface.v);
let c = a + (b - a) / 2.;