Help for this page

Select Code to Download


  1. or download this
    typedef struct {
        double longitude;
    ...
        int edge_count;
        edge_t *edges;
    } polygon_t;
    
  2. or download this
    my $vertex1 = vertex_t->new();
    my $vertex1_obj = $vertex1->_to_ptr();
    ...
    my $edge_obj = $edge->_to_ptr();
    $edge_obj->v1($vertex1);
    $edge_obj->v2($vertex2);
    
  3. or download this
    my $polygon = polygon_t->new();
    my $polygon_obj = $polygon->_to_ptr();
    $polygon_obj->edge_count(8);