<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_LineMath - 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>Class CL_LineMath</h1> <p> Math operations on 2D lines. <a href="#description">More...</a></p> <p>Derived from: <i>none</i> <br> Derived by: <i>none</i> <br>Group: Core (Math)</p> <p> #include <ClanLib/core.h> <p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_LineMath__distance_to_line.html">distance_to_line</a></p></td><td valign=top><p> Return the distance from a point to a line.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_LineMath__intersects.html">intersects</a></p></td><td valign=top><p> Return true if two line segments intersect.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_LineMath__collinear.html">collinear</a></p></td><td valign=top><p> Return true if two line segments are collinear. (All points are on the same line.)</p></td></tr><tr><td width=30% valign=top><p><a href="CL_LineMath__get_intersection.html">get_intersection</a></p></td><td valign=top><p> Return the intersection point of two lines.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_LineMath__point_right_of_line.html">point_right_of_line</a></p></td><td valign=top><p> Return [<0, 0, >0] if the Point P is right, on or left of the line trough A,B</p></td></tr><tr><td width=30% valign=top><p><a href="CL_LineMath__midpoint.html">midpoint</a></p></td><td valign=top><p> Return the midpoint of the line from point A to point B.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_LineMath__normal.html">normal</a></p></td><td valign=top><p> Return the normal vector of the line from point A to point B.</p></td></tr></table> <a name="#description"><p><b>Detailed description:</b></p> !group=Core/Math! !header=core.h! <!-- 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 -->