Consolidate redundant code

This commit is contained in:
Hanno Braun 2025-04-10 12:42:12 +02:00
parent c8b4c4be96
commit c205089446

View File

@ -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> {