<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_LineMath::point_right_of_line - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>CL_LineMath::point_right_of_line</h1> <p> Return [<0, 0, >0] if the Point P is right, on or left of the line trough A,B</p> <pre> float point_right_of_line( float x, float y, float* line); float point_right_of_line( float x, float y, float line_x1, float line_y1, float line_x2, float line_y2); float point_right_of_line( const CL_Pointf& A, const CL_Pointf& B, const CL_Pointf& P); </pre> <p><b>Parameters:</b></p> <dl> <dt><i>float x</i></dt><dd>x coordinate of the point being tested.</dd> <dt><i>float y</i></dt><dd>y coordinate of the point being tested.</dd> <dt><i>float *line</i></dt><dd>The line. A pointer to a float array with the elements {x1,y1,x2,y2}.</dd> <dt><i>float line_x1, line_y1</i></dt><dd>First point defining the line.</dd> <dt><i>float line_x2, line_y2</i></dt><dd>Second point defining the line.</dd> <dt><i>CL_Pointf P</i></dt><dd>Test point.</dd> <dt><i>CL_Pointf A</i></dt><dd>First point defining the line.</dd> <dt><i>CL_Pointf B</i></dt><dd>Second point defining the line.</dd> </dl> <p><b>See also:</b></p> <p><a href="CL_LineMath.html">CL_LineMath</a> | <a href="CL_Pointf.html">CL_Pointf</a> | <a href="CL_Point.html">CL_Point</a></p> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->