diff --git a/crates/fj-kernel/src/objects/curve.rs b/crates/fj-kernel/src/objects/curve.rs index 87c9b5b77..96fd57349 100644 --- a/crates/fj-kernel/src/objects/curve.rs +++ b/crates/fj-kernel/src/objects/curve.rs @@ -27,6 +27,11 @@ pub enum Curve { } impl Curve { + /// Construct a line from two points + pub fn line_from_points(points: [impl Into>; 2]) -> Self { + Self::Line(Line::from_points(points)) + } + /// Access the origin of the curve's coordinate system pub fn origin(&self) -> Point { match self {