You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

558 lines
26 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>Otter: Otter.Line2 Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="otterlogosmall.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Otter
&#160;<span id="projectnumber">0.9.8.91</span>
</div>
<div id="projectbrief">2d Game Development Framework based on SFML.Net</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Packages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_otter_1_1_line2.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Properties</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_otter_1_1_line2-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Otter.Line2 Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Class for a simple line with two points.
<a href="class_otter_1_1_line2.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3d989e3ef588112d21de19504d254f0e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_line2.html#a3d989e3ef588112d21de19504d254f0e">Line2</a> (float x1, float y1, float x2, float y2)</td></tr>
<tr class="memdesc:a3d989e3ef588112d21de19504d254f0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="class_otter_1_1_line2.html" title="Class for a simple line with two points. ">Line2</a>. <a href="#a3d989e3ef588112d21de19504d254f0e">More...</a><br/></td></tr>
<tr class="separator:a3d989e3ef588112d21de19504d254f0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d0686a38e89c1203d2cd1519d79b96a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_line2.html#a6d0686a38e89c1203d2cd1519d79b96a">Line2</a> (<a class="el" href="struct_otter_1_1_vector2.html">Vector2</a> xy1, <a class="el" href="struct_otter_1_1_vector2.html">Vector2</a> xy2)</td></tr>
<tr class="memdesc:a6d0686a38e89c1203d2cd1519d79b96a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="class_otter_1_1_line2.html" title="Class for a simple line with two points. ">Line2</a>. <a href="#a6d0686a38e89c1203d2cd1519d79b96a">More...</a><br/></td></tr>
<tr class="separator:a6d0686a38e89c1203d2cd1519d79b96a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec3c8e6816b478f236ff90065969a3b6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_line2.html#aec3c8e6816b478f236ff90065969a3b6">Intersects</a> (<a class="el" href="class_otter_1_1_line2.html">Line2</a> other)</td></tr>
<tr class="memdesc:aec3c8e6816b478f236ff90065969a3b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Intersection test on another line. (<a href="http://ideone.com/PnPJgb">http://ideone.com/PnPJgb</a>) <a href="#aec3c8e6816b478f236ff90065969a3b6">More...</a><br/></td></tr>
<tr class="separator:aec3c8e6816b478f236ff90065969a3b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ae7bf193e5e0f7d2f8bdf3232039520"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7ae7bf193e5e0f7d2f8bdf3232039520"></a>
override string&#160;</td><td class="memItemRight" valign="bottom"><b>ToString</b> ()</td></tr>
<tr class="separator:a7ae7bf193e5e0f7d2f8bdf3232039520"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fcc8503224c4de1e1ee31015518b643"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_line2.html#a6fcc8503224c4de1e1ee31015518b643">IntersectsRect</a> (float x, float y, float width, float height)</td></tr>
<tr class="memdesc:a6fcc8503224c4de1e1ee31015518b643"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check intersection against a rectangle. <a href="#a6fcc8503224c4de1e1ee31015518b643">More...</a><br/></td></tr>
<tr class="separator:a6fcc8503224c4de1e1ee31015518b643"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9777cb673293e71ee3f389f1618d6f7b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_line2.html#a9777cb673293e71ee3f389f1618d6f7b">IntersectCircle</a> (<a class="el" href="struct_otter_1_1_vector2.html">Vector2</a> circle, float radius)</td></tr>
<tr class="memdesc:a9777cb673293e71ee3f389f1618d6f7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check the intersection against a circle. <a href="#a9777cb673293e71ee3f389f1618d6f7b">More...</a><br/></td></tr>
<tr class="separator:a9777cb673293e71ee3f389f1618d6f7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ab08efc7aa80e42e8c7bf5b2422f0c58a"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_line2.html#ab08efc7aa80e42e8c7bf5b2422f0c58a">X1</a></td></tr>
<tr class="memdesc:ab08efc7aa80e42e8c7bf5b2422f0c58a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The X position for the first point. <a href="#ab08efc7aa80e42e8c7bf5b2422f0c58a">More...</a><br/></td></tr>
<tr class="separator:ab08efc7aa80e42e8c7bf5b2422f0c58a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c4fdfc924671401962e5824d6f0a8e8"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_line2.html#a4c4fdfc924671401962e5824d6f0a8e8">Y1</a></td></tr>
<tr class="memdesc:a4c4fdfc924671401962e5824d6f0a8e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">The Y position for the first point. <a href="#a4c4fdfc924671401962e5824d6f0a8e8">More...</a><br/></td></tr>
<tr class="separator:a4c4fdfc924671401962e5824d6f0a8e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a377019c7594fca2dbf45a766734b40fe"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_line2.html#a377019c7594fca2dbf45a766734b40fe">X2</a></td></tr>
<tr class="memdesc:a377019c7594fca2dbf45a766734b40fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">The X position for the second point. <a href="#a377019c7594fca2dbf45a766734b40fe">More...</a><br/></td></tr>
<tr class="separator:a377019c7594fca2dbf45a766734b40fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0c7ce24a7533a3c33c0ef9746489e00"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_line2.html#af0c7ce24a7533a3c33c0ef9746489e00">Y2</a></td></tr>
<tr class="memdesc:af0c7ce24a7533a3c33c0ef9746489e00"><td class="mdescLeft">&#160;</td><td class="mdescRight">The Y position for the second point. <a href="#af0c7ce24a7533a3c33c0ef9746489e00">More...</a><br/></td></tr>
<tr class="separator:af0c7ce24a7533a3c33c0ef9746489e00"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a3a626ce471fffed8533305e89c8ebc51"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_otter_1_1_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_line2.html#a3a626ce471fffed8533305e89c8ebc51">PointA</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a3a626ce471fffed8533305e89c8ebc51"><td class="mdescLeft">&#160;</td><td class="mdescRight">The first point of the line as a vector2. <a href="#a3a626ce471fffed8533305e89c8ebc51">More...</a><br/></td></tr>
<tr class="separator:a3a626ce471fffed8533305e89c8ebc51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab95af220004e98d31a2991f772deaf04"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_otter_1_1_vector2.html">Vector2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_line2.html#ab95af220004e98d31a2991f772deaf04">PointB</a><code> [get, set]</code></td></tr>
<tr class="memdesc:ab95af220004e98d31a2991f772deaf04"><td class="mdescLeft">&#160;</td><td class="mdescRight">The second point of a line as a vector2. <a href="#ab95af220004e98d31a2991f772deaf04">More...</a><br/></td></tr>
<tr class="separator:ab95af220004e98d31a2991f772deaf04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca4fbb7d83ee7ee987b9557fce47a725"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_line2.html#aca4fbb7d83ee7ee987b9557fce47a725">A</a><code> [get]</code></td></tr>
<tr class="memdesc:aca4fbb7d83ee7ee987b9557fce47a725"><td class="mdescLeft">&#160;</td><td class="mdescRight">A in the line equation Ax + By = C. <a href="#aca4fbb7d83ee7ee987b9557fce47a725">More...</a><br/></td></tr>
<tr class="separator:aca4fbb7d83ee7ee987b9557fce47a725"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a323920aa0a56fcf73ca4364a7df692d6"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_line2.html#a323920aa0a56fcf73ca4364a7df692d6">B</a><code> [get]</code></td></tr>
<tr class="memdesc:a323920aa0a56fcf73ca4364a7df692d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">B in the line equation Ax + By = C. <a href="#a323920aa0a56fcf73ca4364a7df692d6">More...</a><br/></td></tr>
<tr class="separator:a323920aa0a56fcf73ca4364a7df692d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa377417dc2328b80cdf45c7e8e676275"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_otter_1_1_line2.html#aa377417dc2328b80cdf45c7e8e676275">C</a><code> [get]</code></td></tr>
<tr class="memdesc:aa377417dc2328b80cdf45c7e8e676275"><td class="mdescLeft">&#160;</td><td class="mdescRight">C in the line equation Ax + By = C. <a href="#aa377417dc2328b80cdf45c7e8e676275">More...</a><br/></td></tr>
<tr class="separator:aa377417dc2328b80cdf45c7e8e676275"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class for a simple line with two points. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a3d989e3ef588112d21de19504d254f0e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Otter.Line2.Line2 </td>
<td>(</td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>x1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>y1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>x2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>y2</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new <a class="el" href="class_otter_1_1_line2.html" title="Class for a simple line with two points. ">Line2</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x1</td><td>X of the first point</td></tr>
<tr><td class="paramname">y1</td><td>Y of the first point</td></tr>
<tr><td class="paramname">x2</td><td>X of the second point</td></tr>
<tr><td class="paramname">y2</td><td>Y of the second point</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a6d0686a38e89c1203d2cd1519d79b96a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Otter.Line2.Line2 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_otter_1_1_vector2.html">Vector2</a>&#160;</td>
<td class="paramname"><em>xy1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_otter_1_1_vector2.html">Vector2</a>&#160;</td>
<td class="paramname"><em>xy2</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new <a class="el" href="class_otter_1_1_line2.html" title="Class for a simple line with two points. ">Line2</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">xy1</td><td>X,Y of the first point</td></tr>
<tr><td class="paramname">xy2</td><td>X,Y of the second point</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a9777cb673293e71ee3f389f1618d6f7b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Otter.Line2.IntersectCircle </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_otter_1_1_vector2.html">Vector2</a>&#160;</td>
<td class="paramname"><em>circle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>radius</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Check the intersection against a circle. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">circle</td><td></td></tr>
<tr><td class="paramname">radius</td><td></td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>
</div>
</div>
<a class="anchor" id="aec3c8e6816b478f236ff90065969a3b6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Otter.Line2.Intersects </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_otter_1_1_line2.html">Line2</a>&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Intersection test on another line. (<a href="http://ideone.com/PnPJgb">http://ideone.com/PnPJgb</a>) </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">other</td><td>The line to test against</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>
</div>
</div>
<a class="anchor" id="a6fcc8503224c4de1e1ee31015518b643"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Otter.Line2.IntersectsRect </td>
<td>(</td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>height</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Check intersection against a rectangle. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>X Position of the rectangle.</td></tr>
<tr><td class="paramname">y</td><td>Y Position of the rectangle.</td></tr>
<tr><td class="paramname">width</td><td>Width of the rectangle.</td></tr>
<tr><td class="paramname">height</td><td>Height of the rectangle.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if the line intersects any line on the rectangle, or if the line is inside the rectangle.</dd></dl>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="ab08efc7aa80e42e8c7bf5b2422f0c58a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float Otter.Line2.X1</td>
</tr>
</table>
</div><div class="memdoc">
<p>The X position for the first point. </p>
</div>
</div>
<a class="anchor" id="a377019c7594fca2dbf45a766734b40fe"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float Otter.Line2.X2</td>
</tr>
</table>
</div><div class="memdoc">
<p>The X position for the second point. </p>
</div>
</div>
<a class="anchor" id="a4c4fdfc924671401962e5824d6f0a8e8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float Otter.Line2.Y1</td>
</tr>
</table>
</div><div class="memdoc">
<p>The Y position for the first point. </p>
</div>
</div>
<a class="anchor" id="af0c7ce24a7533a3c33c0ef9746489e00"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float Otter.Line2.Y2</td>
</tr>
</table>
</div><div class="memdoc">
<p>The Y position for the second point. </p>
</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="aca4fbb7d83ee7ee987b9557fce47a725"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">float Otter.Line2.A</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>A in the line equation Ax + By = C. </p>
</div>
</div>
<a class="anchor" id="a323920aa0a56fcf73ca4364a7df692d6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">float Otter.Line2.B</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>B in the line equation Ax + By = C. </p>
</div>
</div>
<a class="anchor" id="aa377417dc2328b80cdf45c7e8e676275"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">float Otter.Line2.C</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>C in the line equation Ax + By = C. </p>
</div>
</div>
<a class="anchor" id="a3a626ce471fffed8533305e89c8ebc51"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_otter_1_1_vector2.html">Vector2</a> Otter.Line2.PointA</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The first point of the line as a vector2. </p>
</div>
</div>
<a class="anchor" id="ab95af220004e98d31a2991f772deaf04"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_otter_1_1_vector2.html">Vector2</a> Otter.Line2.PointB</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The second point of a line as a vector2. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Otter/Utility/Line2.cs</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespace_otter.html">Otter</a></li><li class="navelem"><a class="el" href="class_otter_1_1_line2.html">Line2</a></li>
<li class="footer">Generated on Thu May 12 2016 18:16:53 for Otter by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
</ul>
</div>
</body>
</html>