74 return f_to_px_t(floorf(px_u_to_f(coord.
res_width - 1) / 2.0f));
79 return f_to_px_t(floorf(px_u_to_f(coord.
res_height - 1) / 2.0f));
84 return f_to_px_t(ceilf(px_u_to_f(coord.
res_width - 1) / 2.0f));
89 return f_to_px_t(ceilf(px_u_to_f(coord.
res_height - 1) / 2.0f));
pixels_t gu_pixel_coordinate_y_lower_bound(const gu_pixel_coordinate coord)
pixels_t gu_pixel_coordinate_y_upper_bound(const gu_pixel_coordinate coord)
pixels_t gu_pixel_coordinate_x_lower_bound(const gu_pixel_coordinate coord)
bool gu_pixel_coordinate_equals(const gu_pixel_coordinate lhs, const gu_pixel_coordinate rhs)
pixels_t gu_pixel_coordinate_x_upper_bound(const gu_pixel_coordinate coord)
A gu_pixel_coordinate represents the coordinate of a pixel within an image.
pixels_u res_height
The height of the resolution of the image.
pixels_t x
The x coordinate of the pixel within the image.
pixels_u res_width
The width of the resolution of the image.
pixels_t y
The y coordinate of the pixel within the image.