mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 18:38:28 +00:00
Split expression into simpler ones
This commit is contained in:
parent
a5a41a77e9
commit
d5cb2ce685
@ -9,9 +9,7 @@ pub struct Curve {
|
||||
impl Curve {
|
||||
pub fn line_from_vertices(vertices: [&Vertex; 2]) -> Self {
|
||||
let points = vertices.map(|vertex| vertex.point);
|
||||
|
||||
Self {
|
||||
geometry: AnchoredCurve::line_from_points(points),
|
||||
}
|
||||
let geometry = AnchoredCurve::line_from_points(points);
|
||||
Self { geometry }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user