pub fn create(
        &mut self,
        curve: Curve,
        vertices: Option<[Vertex; 2]>,
    ) -> Edge {
        Edge { curve, vertices }
    }
/// Create an edge
///
/// If vertices are provided in `vertices`, they must be on `curve`.
///
/// This constructor will convert the vertices into curve coordinates. If
/// they are not on the curve, this will result in their projection being
/// converted into curve coordinates, which is likely not the caller's
/// intention.
///
/// # Implementation notes
///
/// Right now this is just an overly complicated constructor for `Edge`. In
/// the future, it can add the edge to the proper internal data structures,
/// and validate any constraints that apply to edge creation.
Create an edge
If vertices are provided in `vertices`, they must be on `curve`.

This constructor will convert the vertices into curve coordinates. If
they are not on the curve, this will result in their projection being
converted into curve coordinates, which is likely not the caller's
intention.
Create an edge If vertices are provided in ` vertices ` they must be on ` curve ` . This constructor will convert the vertices into curve coordinates . If they are not on the curve this will result in their projection being converted into curve coordinates which is likely not the caller ' s intention .
pub fn create(
        &mut self,
        curve: Curve,
        vertices: Option<[Vertex; 2]>,
    ) -> Edge {
        Edge { curve, vertices }
    }
pub fn create ( & mut self , curve : Curve , vertices : Option < [ Vertex ; 2 ] > , ) -> Edge { Edge { curve , vertices } }
Create an edge
If vertices are provided in `vertices`, they must be on `curve`.
Create an edge If vertices are provided in ` vertices ` they must be on ` curve ` .
&mut self
curve
Curve
vertices
Option<[Vertex; 2]>
&mut self
curve
Curve
vertices
Option<[Vertex; 2]>
implementation notes
Right now this is just an overly complicated constructor for `Edge`. In
the future, it can add the edge to the proper internal data structures,
and validate any constraints that apply to edge creation.
Right now this is just an overly complicated constructor for ` Edge ` . In the future it can add the edge to the proper internal data structures and validate any constraints that apply to edge creation .