<li><ahref="../../../System/ValueType.html"title="class in System">System.ValueType</a></li>
<li>
<ulclass="inheritance">
<li>Microsoft.Xna.Framework.Ray</li>
</ul>
</li>
</ul>
</li>
</ul>
<divclass="description">
<ulclass="blockList">
<liclass="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><ahref="../../../System/IEquatable.html"title="interface in System">IEquatable</a><<ahref="../../../Microsoft/Xna/Framework/Ray.html"title="class in Microsoft.Xna.Framework">Ray</a>></dd>
</dl>
<hr>
<br>
<pre>public final class <spanclass="strong">Ray</span>
extends <ahref="../../../System/ValueType.html"title="class in System">ValueType</a>
implements <ahref="../../../System/IEquatable.html"title="interface in System">IEquatable</a><<ahref="../../../Microsoft/Xna/Framework/Ray.html"title="class in Microsoft.Xna.Framework">Ray</a>></pre>
<divclass="block">Creates a new instance of Ray.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colOne"><code><strong><ahref="../../../Microsoft/Xna/Framework/Ray.html#Ray(Microsoft.Xna.Framework.Vector3, Microsoft.Xna.Framework.Vector3)">Ray</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Vector3.html"title="class in Microsoft.Xna.Framework">Vector3</a> position,
<ahref="../../../Microsoft/Xna/Framework/Vector3.html"title="class in Microsoft.Xna.Framework">Vector3</a> direction)</code>
<divclass="block">Creates a new instance of Ray.</div>
<divclass="block">Determines whether two instances of Ray are equal.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Ray.html#Equals(Microsoft.Xna.Framework.Ray)">Equals</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Ray.html"title="class in Microsoft.Xna.Framework">Ray</a> other)</code>
<divclass="block">Determines whether the specified Ray is equal to the current Ray.</div>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Ray.html#Intersects(Microsoft.Xna.Framework.BoundingBox)">Intersects</a></strong>(<ahref="../../../Microsoft/Xna/Framework/BoundingBox.html"title="class in Microsoft.Xna.Framework">BoundingBox</a> box)</code>
<divclass="block">Checks whether the Ray intersects a specified BoundingBox.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Ray.html#Intersects(Microsoft.Xna.Framework.BoundingBox, java.lang.Float)">Intersects</a></strong>(<ahref="../../../Microsoft/Xna/Framework/BoundingBox.html"title="class in Microsoft.Xna.Framework">BoundingBox</a> box,
java.lang.Float result)</code>
<divclass="block">Checks whether the current Ray intersects a BoundingBox.</div>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Ray.html#Intersects(Microsoft.Xna.Framework.BoundingSphere)">Intersects</a></strong>(<ahref="../../../Microsoft/Xna/Framework/BoundingSphere.html"title="class in Microsoft.Xna.Framework">BoundingSphere</a> sphere)</code>
<divclass="block">Checks whether the Ray intersects a specified BoundingSphere.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Ray.html#Intersects(Microsoft.Xna.Framework.BoundingSphere, java.lang.Float)">Intersects</a></strong>(<ahref="../../../Microsoft/Xna/Framework/BoundingSphere.html"title="class in Microsoft.Xna.Framework">BoundingSphere</a> sphere,
java.lang.Float result)</code>
<divclass="block">Checks whether the current Ray intersects a BoundingSphere.</div>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Ray.html#Intersects(Microsoft.Xna.Framework.Plane)">Intersects</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Plane.html"title="class in Microsoft.Xna.Framework">Plane</a> plane)</code>
<divclass="block">Determines whether this Ray intersects a specified Plane.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../Microsoft/Xna/Framework/Ray.html#Intersects(Microsoft.Xna.Framework.Plane, java.lang.Float)">Intersects</a></strong>(<ahref="../../../Microsoft/Xna/Framework/Plane.html"title="class in Microsoft.Xna.Framework">Plane</a> plane,
java.lang.Float result)</code>
<divclass="block">Determines whether this Ray intersects a specified Plane.</div>
<pre>public Ray(<ahref="../../../Microsoft/Xna/Framework/Vector3.html"title="class in Microsoft.Xna.Framework">Vector3</a> position,
<ahref="../../../Microsoft/Xna/Framework/Vector3.html"title="class in Microsoft.Xna.Framework">Vector3</a> direction)</pre>
<divclass="block">Creates a new instance of Ray.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>position</code> - The starting point of the Ray.</dd><dd><code>direction</code> - Unit vector describing the direction of the Ray.</dd></dl>
</li>
</ul>
<aname="Ray()">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>Ray</h4>
<pre>public Ray()</pre>
<divclass="block">Creates a new instance of Ray.</div>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>obj</code> - The Object to compare with the current Ray.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>true if the specified System.Object is equal to the current Ray; false otherwise.</dd></dl>
</li>
</ul>
<aname="Equals(Microsoft.Xna.Framework.Ray)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>Equals</h4>
<pre>public boolean Equals(<ahref="../../../Microsoft/Xna/Framework/Ray.html"title="class in Microsoft.Xna.Framework">Ray</a> other)</pre>
<divclass="block">Determines whether the specified Ray is equal to the current Ray.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../System/IEquatable.html#Equals(T)">Equals</a></code> in interface <code><ahref="../../../System/IEquatable.html"title="interface in System">IEquatable</a><<ahref="../../../Microsoft/Xna/Framework/Ray.html"title="class in Microsoft.Xna.Framework">Ray</a>></code></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>other</code> - The Ray to compare with the current Ray.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>true if the specified Ray is equal to the current Ray; false otherwise.</dd></dl>
</li>
</ul>
<aname="hashCode()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>hashCode</h4>
<pre>public int hashCode()</pre>
<divclass="block">Gets the hash code for this instance.</div>
<pre>public java.lang.Float Intersects(<ahref="../../../Microsoft/Xna/Framework/BoundingBox.html"title="class in Microsoft.Xna.Framework">BoundingBox</a> box)</pre>
<divclass="block">Checks whether the Ray intersects a specified BoundingBox.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>box</code> - The BoundingBox to check for intersection with the Ray.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>Distance at which the ray intersects the BoundingBox or null if there is no intersection.</dd></dl>
<pre>public java.lang.Float Intersects(<ahref="../../../Microsoft/Xna/Framework/BoundingSphere.html"title="class in Microsoft.Xna.Framework">BoundingSphere</a> sphere)</pre>
<divclass="block">Checks whether the Ray intersects a specified BoundingSphere.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sphere</code> - The BoundingSphere to check for intersection with the Ray.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>Distance at which the ray intersects the BoundingSphere or null if there is no intersection.</dd></dl>
<pre>public java.lang.Float Intersects(<ahref="../../../Microsoft/Xna/Framework/Plane.html"title="class in Microsoft.Xna.Framework">Plane</a> plane)</pre>
<divclass="block">Determines whether this Ray intersects a specified Plane.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>plane</code> - The Plane with which to calculate this Ray's intersection.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The distance at which this Ray intersects the specified Plane, or null if there is no intersection.</dd></dl>
<pre>public void Intersects(<ahref="../../../Microsoft/Xna/Framework/BoundingBox.html"title="class in Microsoft.Xna.Framework">BoundingBox</a> box,
java.lang.Float result)</pre>
<divclass="block">Checks whether the current Ray intersects a BoundingBox.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>box</code> - The BoundingBox to check for intersection with.</dd><dd><code>result</code> - [OutAttribute] Distance at which the ray intersects the BoundingBox or null if there is no intersection.</dd></dl>
<pre>public void Intersects(<ahref="../../../Microsoft/Xna/Framework/BoundingSphere.html"title="class in Microsoft.Xna.Framework">BoundingSphere</a> sphere,
java.lang.Float result)</pre>
<divclass="block">Checks whether the current Ray intersects a BoundingSphere.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sphere</code> - The BoundingSphere to check for intersection with.</dd><dd><code>result</code> - [OutAttribute] Distance at which the ray intersects the BoundingSphere or null if there is no intersection.</dd></dl>
<pre>public void Intersects(<ahref="../../../Microsoft/Xna/Framework/Plane.html"title="class in Microsoft.Xna.Framework">Plane</a> plane,
java.lang.Float result)</pre>
<divclass="block">Determines whether this Ray intersects a specified Plane.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>plane</code> - The Plane with which to calculate this Ray's intersection.</dd><dd><code>result</code> - [OutAttribute] The distance at which this Ray intersects the specified Plane, or null if there is no intersection.</dd></dl>