void toPolygon | ( | const polygon::point & | pixel, | |
polygon::point * | pixel_poly | |||
) |
for a pixel centered at pixel.x
, pixel.y
, return a plygon with the 4 corners of the pixel as vertices. assumes the memory for the pixel polygon has been allocated by the caller.
References polygon::point::x, and polygon::point::y.
Referenced by Extractor::extract_aperture_w_rebin().
std::vector< polygon::point > getAffectedPixel | ( | const polygon::point | wfwin[] | ) |
float minx | ( | const polygon::point | xx[], | |
const int | N | |||
) |
return smallest x value within a point
[] of length N
References polygon::point::x.
Referenced by emission_line_plot(), getAffectedPixel(), mkimage_regrid(), and Measure::remove_spectra_ind().
float miny | ( | const polygon::point | xx[], | |
const int | N | |||
) |
return smallest y value within a point
[] of length N
References polygon::point::y.
Referenced by FiberIterator::beginFiber(), emission_line_plot(), getAffectedPixel(), mkimage_regrid(), and Measure::remove_spectra_ind().
float maxx | ( | const polygon::point | xx[], | |
const int | N | |||
) |
return largest x value within a point
[] of length N
References polygon::point::x.
Referenced by emission_line_plot(), getAffectedPixel(), mkimage_regrid(), and Measure::remove_spectra_ind().
float maxy | ( | const polygon::point | xx[], | |
const int | N | |||
) |
return largest y value within a point
[] of length N
References polygon::point::y.
Referenced by FiberIterator::beginFiber(), emission_line_plot(), getAffectedPixel(), mkimage_regrid(), and Measure::remove_spectra_ind().