Math operations on 2D lines.
Definition line_math.h:43
static float closest_point_relative(const Pointf &P, const Pointf &A, const Pointf &B)
Return the relative position (0-1) of the point R on the line from A to B closest to point P.
static Pointf midpoint(const Pointf &A, const Pointf &B)
Return the midpoint of the line from point A to point B.
static Pointf closest_point(const Pointf &P, const Pointf &A, const Pointf &B)
Return the Point on the line from A to B closest to point P.
static float point_right_of_line(float x, float y, float *line)
Return [<0, 0, >0] if the Point P is right, on or left of the line trough A,B.
static float point_right_of_line(float x, float y, float line_x1, float line_y1, float line_x2, float line_y2)
Point right of line.
static float point_right_of_line(const Pointf &A, const Pointf &B, const Pointf &P)
Point right of line.
2D (x,y) point structure - Float
Definition point.h:72
@ line
Definition graphic_context.h:79