mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 19:08:28 +00:00
Consolidate redundant code
This commit is contained in:
parent
c8b4c4be96
commit
c205089446
@ -26,11 +26,7 @@ impl SweptCurve {
|
||||
pub fn plane_from_points(points: [impl Into<Point<3>>; 3]) -> Self {
|
||||
let [a, b, c] = points.map(Into::into);
|
||||
|
||||
let (curve, _) = Line::from_points([a, b]);
|
||||
Self {
|
||||
curve: Box::new(curve),
|
||||
path: c - a,
|
||||
}
|
||||
Self::plane_from_coord_system(a, [b - a, c - a])
|
||||
}
|
||||
|
||||
pub fn v(&self) -> Vector<3> {
|
||||
|
Loading…
Reference in New Issue
Block a user