Logo Search packages:      
Sourcecode: zebra version File versions  Download package

int zebra_symbol_get_loc_y ( const zebra_symbol_t symbol,
unsigned  index 
)

retrieve location polygon y-coordinates. points are specified by 0-based index.

Returns:
the y-coordinate for a point in the location polygon.

-1 if index is out of range

Definition at line 84 of file symbol.c.

References zebra_symbol_get_loc_y().

Referenced by zebra::Symbol::get_location_y(), zebra::Symbol::PointIterator::operator++(), and zebra_symbol_get_loc_y().

{
    if(idx < sym->npts)
        return(sym->pts[idx].y);
    else
        return(-1);
}


Generated by  Doxygen 1.6.0   Back to index