gucoordinates
Functions
pixel_coordinate.c File Reference
#include "pixel_coordinate.h"
#include <stdbool.h>
#include <math.h>
Include dependency graph for pixel_coordinate.c:

Go to the source code of this file.

Functions

bool gu_pixel_coordinate_equals (const gu_pixel_coordinate lhs, const gu_pixel_coordinate rhs)
 
pixels_t gu_pixel_coordinate_x_lower_bound (const gu_pixel_coordinate coord)
 
pixels_t gu_pixel_coordinate_y_lower_bound (const gu_pixel_coordinate coord)
 
pixels_t gu_pixel_coordinate_x_upper_bound (const gu_pixel_coordinate coord)
 
pixels_t gu_pixel_coordinate_y_upper_bound (const gu_pixel_coordinate coord)
 

Function Documentation

◆ gu_pixel_coordinate_equals()

bool gu_pixel_coordinate_equals ( const gu_pixel_coordinate  lhs,
const gu_pixel_coordinate  rhs 
)

◆ gu_pixel_coordinate_x_lower_bound()

pixels_t gu_pixel_coordinate_x_lower_bound ( const gu_pixel_coordinate  coord)

Definition at line 72 of file pixel_coordinate.c.

References gu_pixel_coordinate::res_width.

Referenced by GU::PixelCoordinate::xLowerBound().

◆ gu_pixel_coordinate_x_upper_bound()

pixels_t gu_pixel_coordinate_x_upper_bound ( const gu_pixel_coordinate  coord)

Definition at line 82 of file pixel_coordinate.c.

References gu_pixel_coordinate::res_width.

Referenced by GU::PixelCoordinate::xUpperBound().

◆ gu_pixel_coordinate_y_lower_bound()

pixels_t gu_pixel_coordinate_y_lower_bound ( const gu_pixel_coordinate  coord)

Definition at line 77 of file pixel_coordinate.c.

References gu_pixel_coordinate::res_height.

Referenced by GU::PixelCoordinate::yLowerBound().

◆ gu_pixel_coordinate_y_upper_bound()

pixels_t gu_pixel_coordinate_y_upper_bound ( const gu_pixel_coordinate  coord)

Definition at line 87 of file pixel_coordinate.c.

References gu_pixel_coordinate::res_height.

Referenced by GU::PixelCoordinate::yUpperBound().