File: GetIntersectionPoint.html

package info (click to toggle)
openlayer 2.1-2.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 3,392 kB
  • ctags: 2,317
  • sloc: ansic: 10,433; cpp: 9,890; xml: 109; makefile: 90; sh: 36
file content (9 lines) | stat: -rw-r--r-- 3,217 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transistional//EN"><html><head><title>OpenLayer Offline Manual</title><style type="text/css" media="all">@import "../CrystalStyle.css";</style><body bgcolor="FFFFFF" ><div align="center" style="pagestyle"><table width="60%"><tr><td><div class="parentLinks"><a href="../index.html">OpenLayer</a> | <a href="../Shape.html">Shape</a> | <a href="../Shape/Line.html">Line</a> | <a href="../Line/GetIntersectionPoint.html">GetIntersectionPoint</a></div><br><div class="BigHeader">GetIntersectionPoint</div><br><div class=""><div class="Surrounded"><table><tr valign="top"><td align="right"><div class="FuncDef"><strong><a href="../Vec2D.html"><font color="#0000CC">Vec2D</font></a> <a href="../Line/GetIntersectionPoint.html"><font color="#0000CC">GetIntersectionPoint</font></a>(</strong></div></td><td><div class="FuncDef"><strong><font color="#777733">const</font> <a href="../Shape/Line.html"><font color="#0000CC">Line</font></a> &amp;other )
<br></strong></div></td></tr></table>
<br>Returns the intersection point between this line and an another one.
<br></div>
<br>The intersection point may not fall inside the line segments. Use the Collides-function to test if the line segments collide.</div><br><div class="MediumHeader">Examples</div><br><div class="Code"><a href="../Shape/Line.html"><font color="#0000CC">Line</font></a>&nbsp;myLine(&nbsp;...&nbsp;);
<br><a href="../Shape/Line.html"><font color="#0000CC">Line</font></a>&nbsp;otherLine(&nbsp;...&nbsp;);
<br>
<br><font color="#999922">//&nbsp;Get&nbsp;the&nbsp;intersection&nbsp;point&nbsp;of&nbsp;the&nbsp;two&nbsp;lines&nbsp;//</font>
<br><a href="../Vec2D.html"><font color="#0000CC">Vec2D</font></a>&nbsp;point&nbsp;=&nbsp;myLine.<a href="../Line/GetIntersectionPoint.html"><font color="#0000CC">GetIntersectionPoint</font></a>(&nbsp;otherLine&nbsp;);</div><div class=""><br><br><div class="MediumHeader">Other functions of the class <a href="../Shape/Line.html"><font color="#0000CC">Line</font></a></div><div class="Surrounded"><table size="100%" cellpadding="0" cellspacing="0"><tr><td halign="center" class="funclist"><a href="../Line/Draw.html">Draw</a></td><td width="65%" halign="center"><div class="smalltext">Draws the line to the screen filled with a color</div></td></tr><tr><td halign="center" class="funclist"><a href="../Line/GetIntersectionPoint.html">GetIntersectionPoint</a></td><td width="65%" halign="center"><div class="smalltext">Returns the intersection point between two lines</div></td></tr><tr><td halign="center" class="funclist"><a href="../Line/Collides.html">Collides</a></td><td width="65%" halign="center"><div class="smalltext">Tests if the two line segments collide</div></td></tr><tr><td halign="center" class="funclist"><a href="../Line/GetNormal.html">GetNormal</a></td><td width="65%" halign="center"><div class="smalltext">Returns the normal of the line</div></td></tr></table></div><br><div class=""><a href="../index.html">Back to the main page of the manual</a></div><br>Questions about GetIntersectionPoint? Click <a href="http://crystalstorm.ath.cx/index.php?lan=en&page=CreateFeedback&subject=GetIntersectionPoint">here.</a></div></td></tr></table></body></html>