Skip to content

Commit

Permalink
Inline redundant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Sep 12, 2024
1 parent d76dd8a commit dc0c010
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/fj-core/src/geometry/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.;
Expand Down

0 comments on commit dc0c010

Please sign in to comment.