fn draw_vertices(&self, config: &SharedData, affine: &VU::SimpleAffine<I, F>) {
        let draw = |x: f64, y: f64| {
            draw::draw_circle(x, y, 1.0);
        };
        let draw_external = config.draw_flag.contains(DrawFilterFlag::EXTERNAL);
        let draw_site_vertex = config.draw_flag.contains(DrawFilterFlag::SITE_VERTEX);

        for it in self.diagram.vertex_iter().enumerate() {
            let vertex = it.1.get();

            if (!draw_site_vertex) && vertex.is_site_point() {
                continue;
            }
            if (!draw_external)
                && ColorFlag::from_bits(vertex.get_color())
                    .unwrap()
                    .contains(ColorFlag::EXTERNAL)
            {
                continue;
            }

            draw(
                Self::f1_to_f64(affine.transform_x(vertex.x())),
                Self::f1_to_f64(affine.transform_y(vertex.y())),
            );
        }
    }
/// Draw voronoi vertices aka circle events.
Draw voronoi vertices aka circle events.
Draw voronoi vertices aka circle events .
fn draw_vertices(&self, config: &SharedData, affine: &VU::SimpleAffine<I, F>) {
        let draw = |x: f64, y: f64| {
            draw::draw_circle(x, y, 1.0);
        };
        let draw_external = config.draw_flag.contains(DrawFilterFlag::EXTERNAL);
        let draw_site_vertex = config.draw_flag.contains(DrawFilterFlag::SITE_VERTEX);
        for it in self.diagram.vertex_iter().enumerate() {
            let vertex = it.1.get();
            if (!draw_site_vertex) && vertex.is_site_point() {
                continue;
            }
            if (!draw_external)
                && ColorFlag::from_bits(vertex.get_color())
                    .unwrap()
                    .contains(ColorFlag::EXTERNAL)
            {
                continue;
            }
            draw(
                Self::f1_to_f64(affine.transform_x(vertex.x())),
                Self::f1_to_f64(affine.transform_y(vertex.y())),
            );
        }
    }
fn draw_vertices ( & self , config : & SharedData , affine : & VU :: SimpleAffine < I , F > ) { let draw = | x : f64 , y : f64 | { draw :: draw_circle ( x , y , 1.0 ) ; } ; let draw_external = config . draw_flag . contains ( DrawFilterFlag :: EXTERNAL ) ; let draw_site_vertex = config . draw_flag . contains ( DrawFilterFlag :: SITE_VERTEX ) ; for it in self . diagram . vertex_iter ( ) . enumerate ( ) { let vertex = it . 1 . get ( ) ; if ( ! draw_site_vertex ) && vertex . is_site_point ( ) { continue ; } if ( ! draw_external ) && ColorFlag :: from_bits ( vertex . get_color ( ) ) . unwrap ( ) . contains ( ColorFlag :: EXTERNAL ) { continue ; } draw ( Self :: f1_to_f64 ( affine . transform_x ( vertex . x ( ) ) ) , Self :: f1_to_f64 ( affine . transform_y ( vertex . y ( ) ) ) , ) ; } }
Draw voronoi vertices aka circle events.
Draw voronoi vertices aka circle events .
&self
config
&SharedData
affine
&VU::SimpleAffine<I, F>