MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > a) Common Functions > leGetYGivenXOnLine Function
MPLAB® Harmony Graphics Suite
leGetYGivenXOnLine Function

Projects a point onto another point given a x coordinate.

C
int32_t leGetYGivenXOnLine(
    lePoint p1, 
    lePoint p2, 
    int32_t x
);
Parameters
Parameters 
Description 
lePoint p1 
the first point 
lePoint p2 
the second point 
int32_t x 
the x coordinate 
Returns

int32_t - the resultant y coordinate

MPLAB® Harmony Graphics Suite