Home | All Classes | Grouped Classes | Index | Search

CL_LineMath::point_right_of_line

Return true if the point is on the right side of the line, as seen from x1, y1.

	bool point_right_of_line(
		float x, float y, float* line);

	bool point_right_of_line(
		float x, float y, float line_x1, float line_y1, float line_x2, float line_y2);

Parameters:

float x
x coordinate of the point being tested.
float y
y coordinate of the point being tested.
float *line
The line. A pointer to a float array with the elements {x1,y1,x2,y2}.
float line_x1, line_y1
First point defining the line.
float line_x2, line_y2
Second point defining the line.

See also:

CL_LineMath



Questions or comments, write to the ClanLib mailing list.