// The points for this edge.
The points for this edge.
The points for this edge .
fn points(
            &self,
            e: EdgeIndex,
            eg: &EulerGraph,
            conf: &InterpolationConfig,
            excess_points: u32,
        ) -> Vec<RawPoint> {
            let e_ref = &eg.raw_edges()[e.index()];
            let a = eg[e_ref.source()];
            let b = eg[e_ref.target()];
            match self.kind {
                EdgeProfileKind::Blank => {
                    blank_segment_points(a, b.to_raw(), conf.blank_delay_points)
                        .collect()
                }
                EdgeProfileKind::Lit { end_corner, distance } => {
                    let dist_point_count =
                        distance_min_point_count(distance, conf.distance_per_point);
                    let corner_point_count =
                        corner_point_count(end_corner, conf.radians_per_point);
                    let br = b.to_raw();
                    lit_segment_points(a, br, corner_point_count, dist_point_count, excess_points)
                        .collect()
                }
            }
        }
fn points ( & self , e : EdgeIndex , eg : & EulerGraph , conf : & InterpolationConfig , excess_points : u32 , ) -> Vec < RawPoint > { let e_ref = & eg . raw_edges ( ) [ e . index ( ) ] ; let a = eg [ e_ref . source ( ) ] ; let b = eg [ e_ref . target ( ) ] ; match self . kind { EdgeProfileKind :: Blank => { blank_segment_points ( a , b . to_raw ( ) , conf . blank_delay_points ) . collect ( ) } EdgeProfileKind :: Lit { end_corner , distance } => { let dist_point_count = distance_min_point_count ( distance , conf . distance_per_point ) ; let corner_point_count = corner_point_count ( end_corner , conf . radians_per_point ) ; let br = b . to_raw ( ) ; lit_segment_points ( a , br , corner_point_count , dist_point_count , excess_points ) . collect ( ) } } }
The points for this edge.
The points for this edge .
&self
e
EdgeIndex
eg
&EulerGraph
conf
&InterpolationConfig
excess_points
u32