<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_TriangleMath::point_inside_triangle - 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_TriangleMath::point_inside_triangle</h1> <p> Return true if the point is inside the triangle.</p> <pre> bool point_inside_triangle( const CL_Pointf& P, float* vertices, bool on_edge_is_outside); bool point_inside_triangle( float px, float py, float* vertices, bool on_edge_is_outside); </pre> <p><b>Parameters:</b></p> <dl> <dt><i>CL_Pointf P</i></dt><dd>point to test</dd> <dt><i>float *vertices</i></dt><dd>Pointer to triangle vertices {x1,y1,x2,y2,x3,y3}.</dd> <dt><i>bool on_edge_is_outside</i></dt><dd>are points exactly on a edge in or out.</dd> </dl> <p><b>See also:</b></p> <p><a href="CL_TriangleMath.html">CL_TriangleMath</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 -->