pub(crate) fn edge_as_line_(&self, edge: Option<EdgeIndex>) -> Option<[F; 4]> {
        let v0 = self.vertex_get_(self.edge_get_vertex0_(edge));
        let v1 = self.vertex_get_(self._edge_get_vertex1(edge));
        if let Some(v0) = v0 {
            if let Some(v1) = v1 {
                let v0 = v0.get();
                let v1 = v1.get();
                return Some([v0.x(), v0.y(), v1.x(), v1.y()]);
            }
        }
        None
    }
/// Return the edge represented as an straight line
/// if the edge does not exists or if it lacks v0 or v1; None will be returned.
/// TODO: this looks like an into() candidate
Return the edge represented as an straight line
if the edge does not exists or if it lacks v0 or v1; None will be returned.
TODO: this looks like an into() candidate
Return the edge represented as an straight line if the edge does not exists or if it lacks v0 or v1 ; None will be returned . TODO : this looks like an into () candidate
pub(crate) fn edge_as_line_(&self, edge: Option<EdgeIndex>) -> Option<[F; 4]> {
        let v0 = self.vertex_get_(self.edge_get_vertex0_(edge));
        let v1 = self.vertex_get_(self._edge_get_vertex1(edge));
        if let Some(v0) = v0 {
            if let Some(v1) = v1 {
                let v0 = v0.get();
                let v1 = v1.get();
                return Some([v0.x(), v0.y(), v1.x(), v1.y()]);
            }
        }
        None
    }
pub ( crate ) fn edge_as_line_ ( & self , edge : Option < EdgeIndex > ) -> Option < [ F ; 4 ] > { let v0 = self . vertex_get_ ( self . edge_get_vertex0_ ( edge ) ) ; let v1 = self . vertex_get_ ( self . _edge_get_vertex1 ( edge ) ) ; if let Some ( v0 ) = v0 { if let Some ( v1 ) = v1 { let v0 = v0 . get ( ) ; let v1 = v1 . get ( ) ; return Some ( [ v0 . x ( ) , v0 . y ( ) , v1 . x ( ) , v1 . y ( ) ] ) ; } } None }
Return the edge represented as an straight line
if the edge does not exists or if it lacks v0 or v1; None will be returned.
Return the edge represented as an straight line if the edge does not exists or if it lacks v0 or v1 ; None will be returned .
&self
edge
Option<EdgeIndex>