mirror of
https://github.com/hannobraun/Fornjot
synced 2025-08-01 06:46:11 +00:00
Inline redundant variable
This commit is contained in:
parent
d76dd8ad4c
commit
dc0c0108d1
@ -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.;
|
||||
|
Loading…
x
Reference in New Issue
Block a user