MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria Graphics Utilities Library > Graphics Utilities Interface > a) Functions > GFX_UtilGetXGivenYOnLine Function
MPLAB® Harmony Graphics Suite
GFX_UtilGetXGivenYOnLine Function
C
LIB_EXPORT int32_t GFX_UtilGetXGivenYOnLine(
    GFX_Point p1, 
    GFX_Point p2, 
    int32_t y
);
Parameters
Parameters 
Description 
GFX_Point p1 
the first point in line 
GFX_Point p2 
the second point in line 
int32_t y 
the y-coordinate of the point of interest 
Returns

int32_t - the x-coordinate of the point of interest

MPLAB® Harmony Graphics Suite