<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Crystal Space 1.2.1: csDPlane Class Reference (Crystal Space 1.2.1 Public API Reference)</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head"> <tr height="59"> <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td> <td class="head"><h2>Public API Reference</h2></td> </tr> <tr height="11"> <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td> </tr> </table> <div class="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <h1>csDPlane Class Reference<br> <small> [<a class="el" href="group__geom__utils.html">Geometry utilities</a>]</small> </h1><!-- doxytag: class="csDPlane" -->A plane in 3D space. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="math3d__d_8h-source.html">csgeom/math3d_d.h</a>></code> <p> <p> <a href="classcsDPlane-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#c6e74eaf59f97b22b3e010fbcc741790">A</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the A component of this plane. <a href="#c6e74eaf59f97b22b3e010fbcc741790"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#56c47b381ea897747c18a348006e5aac">A</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the A component of this plane. <a href="#56c47b381ea897747c18a348006e5aac"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#61a1a917085b28f7a46cc88ec1d564e1">B</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the B component of this plane. <a href="#61a1a917085b28f7a46cc88ec1d564e1"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#6f936085c22c5db4aa91391eaa5b8e86">B</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the B component of this plane. <a href="#6f936085c22c5db4aa91391eaa5b8e86"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#72865b81227c02924da20ccacbf12ebd">C</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the C component of this plane. <a href="#72865b81227c02924da20ccacbf12ebd"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#b41d101fb375165493c389fd3fff3d4d">C</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the C component of this plane. <a href="#b41d101fb375165493c389fd3fff3d4d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#1e50c64e1127e96ddbb1d45b918e3536">Classify</a> (const <a class="el" href="classcsDVector3.html">csDVector3</a> &pt) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Classify the given vector with regards to this plane. <a href="#1e50c64e1127e96ddbb1d45b918e3536"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#3e3d6eba667164ad5d657e3ab68ead84">csDPlane</a> (double a, double b, double c, double d=0)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize the plane. <a href="#3e3d6eba667164ad5d657e3ab68ead84"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#2c54b5db006d4efc5cd6067b0e06c6d9">csDPlane</a> (const <a class="el" href="classcsDVector3.html">csDVector3</a> &plane_norm, double d=0)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize the plane. <a href="#2c54b5db006d4efc5cd6067b0e06c6d9"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#ee2f04636684cab564f72d7ef352d5d0">csDPlane</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize to the xy plane. <a href="#ee2f04636684cab564f72d7ef352d5d0"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#f0a0b0b648535bb5d84ce1beb6256362">D</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the D component of this plane. <a href="#f0a0b0b648535bb5d84ce1beb6256362"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#62c79b75c40d4d8be2a7700396ff7785">D</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the D component of this plane. <a href="#62c79b75c40d4d8be2a7700396ff7785"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#802de9e64bcae4c17fd5bcae2cf25e3f">Distance</a> (const <a class="el" href="classcsDVector3.html">csDVector3</a> &pt) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Compute the distance from the given vector to this plane. <a href="#802de9e64bcae4c17fd5bcae2cf25e3f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#cb745d10bc77401bc4c60633bf90eb3f">Invert</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Reverses the direction of the plane while maintianing the plane itself. <a href="#cb745d10bc77401bc4c60633bf90eb3f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classcsDVector3.html">csDVector3</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#639512a2fd91e2c9be12bdf79dca87f8">Normal</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the normal vector of this plane. <a href="#639512a2fd91e2c9be12bdf79dca87f8"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcsDVector3.html">csDVector3</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#d1480e279930669348b0b0d28adf97a4">Normal</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the normal vector of this plane. <a href="#d1480e279930669348b0b0d28adf97a4"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#afe8980d1b85f727d7581af8f55f450b">Normalize</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Normalizes the plane equation so that 'norm' is a unit vector. <a href="#afe8980d1b85f727d7581af8f55f450b"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#9acb8abba4f22bd58a00bddbc7bccacf">Set</a> (double a, double b, double c, double d)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the value of the four plane components. <a href="#9acb8abba4f22bd58a00bddbc7bccacf"></a><br></td></tr> <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#3b62e53423033528c0353a6307559f57">Classify</a> (double A, double B, double C, double D, const <a class="el" href="classcsDVector3.html">csDVector3</a> &pt)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Classify a vector with regards to four plane components. <a href="#3b62e53423033528c0353a6307559f57"></a><br></td></tr> <tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#b28cc94b9b275b8b645fd1dd07629d27">DD</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The D component of the plane. <a href="#b28cc94b9b275b8b645fd1dd07629d27"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcsDVector3.html">csDVector3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsDPlane.html#8b2e170fe54d5cdfa648faf3a9c451db">norm</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The normal vector (or the (A,B,C) components). <a href="#8b2e170fe54d5cdfa648faf3a9c451db"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> A plane in 3D space. <p> The plane is given by the equation AAx + BBy + CCz + DD = 0, Where (AA,BB,CC) is given by the vector 'norm'. <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00358">358</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="ee2f04636684cab564f72d7ef352d5d0"></a><!-- doxytag: member="csDPlane::csDPlane" ref="ee2f04636684cab564f72d7ef352d5d0" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">csDPlane::csDPlane </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Initialize to the xy plane. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00368">368</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <a class="anchor" name="2c54b5db006d4efc5cd6067b0e06c6d9"></a><!-- doxytag: member="csDPlane::csDPlane" ref="2c54b5db006d4efc5cd6067b0e06c6d9" args="(const csDVector3 &plane_norm, double d=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">csDPlane::csDPlane </td> <td>(</td> <td class="paramtype">const <a class="el" href="classcsDVector3.html">csDVector3</a> & </td> <td class="paramname"> <em>plane_norm</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>d</em> = <code>0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Initialize the plane. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00371">371</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <a class="anchor" name="3e3d6eba667164ad5d657e3ab68ead84"></a><!-- doxytag: member="csDPlane::csDPlane" ref="3e3d6eba667164ad5d657e3ab68ead84" args="(double a, double b, double c, double d=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">csDPlane::csDPlane </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>a</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>b</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>c</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>d</em> = <code>0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Initialize the plane. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00375">375</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="c6e74eaf59f97b22b3e010fbcc741790"></a><!-- doxytag: member="csDPlane::A" ref="c6e74eaf59f97b22b3e010fbcc741790" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double& csDPlane::A </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return the A component of this plane. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00392">392</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <a class="anchor" name="56c47b381ea897747c18a348006e5aac"></a><!-- doxytag: member="csDPlane::A" ref="56c47b381ea897747c18a348006e5aac" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double csDPlane::A </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return the A component of this plane. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00383">383</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <a class="anchor" name="61a1a917085b28f7a46cc88ec1d564e1"></a><!-- doxytag: member="csDPlane::B" ref="61a1a917085b28f7a46cc88ec1d564e1" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double& csDPlane::B </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return the B component of this plane. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00394">394</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <a class="anchor" name="6f936085c22c5db4aa91391eaa5b8e86"></a><!-- doxytag: member="csDPlane::B" ref="6f936085c22c5db4aa91391eaa5b8e86" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double csDPlane::B </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return the B component of this plane. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00385">385</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <a class="anchor" name="72865b81227c02924da20ccacbf12ebd"></a><!-- doxytag: member="csDPlane::C" ref="72865b81227c02924da20ccacbf12ebd" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double& csDPlane::C </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return the C component of this plane. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00396">396</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <a class="anchor" name="b41d101fb375165493c389fd3fff3d4d"></a><!-- doxytag: member="csDPlane::C" ref="b41d101fb375165493c389fd3fff3d4d" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double csDPlane::C </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return the C component of this plane. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00387">387</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <a class="anchor" name="3b62e53423033528c0353a6307559f57"></a><!-- doxytag: member="csDPlane::Classify" ref="3b62e53423033528c0353a6307559f57" args="(double A, double B, double C, double D, const csDVector3 &pt)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static double csDPlane::Classify </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>A</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>B</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>C</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>D</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classcsDVector3.html">csDVector3</a> & </td> <td class="paramname"> <em>pt</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Classify a vector with regards to four plane components. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00408">408</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> <p>References <a class="el" href="math3d__d_8h-source.html#l00055">csDVector3::x</a>, <a class="el" href="math3d__d_8h-source.html#l00057">csDVector3::y</a>, and <a class="el" href="math3d__d_8h-source.html#l00059">csDVector3::z</a>.</p> </div> </div><p> <a class="anchor" name="1e50c64e1127e96ddbb1d45b918e3536"></a><!-- doxytag: member="csDPlane::Classify" ref="1e50c64e1127e96ddbb1d45b918e3536" args="(const csDVector3 &pt) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double csDPlane::Classify </td> <td>(</td> <td class="paramtype">const <a class="el" href="classcsDVector3.html">csDVector3</a> & </td> <td class="paramname"> <em>pt</em> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Classify the given vector with regards to this plane. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00405">405</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> <p>Referenced by <a class="el" href="math3d__d_8h-source.html#l00581">csDSquaredDist::PointPlane()</a>, and <a class="el" href="math3d__d_8h-source.html#l00470">csDMath3::Visible()</a>.</p> </div> </div><p> <a class="anchor" name="f0a0b0b648535bb5d84ce1beb6256362"></a><!-- doxytag: member="csDPlane::D" ref="f0a0b0b648535bb5d84ce1beb6256362" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double& csDPlane::D </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return the D component of this plane. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00398">398</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <a class="anchor" name="62c79b75c40d4d8be2a7700396ff7785"></a><!-- doxytag: member="csDPlane::D" ref="62c79b75c40d4d8be2a7700396ff7785" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double csDPlane::D </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return the D component of this plane. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00389">389</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <a class="anchor" name="802de9e64bcae4c17fd5bcae2cf25e3f"></a><!-- doxytag: member="csDPlane::Distance" ref="802de9e64bcae4c17fd5bcae2cf25e3f" args="(const csDVector3 &pt) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double csDPlane::Distance </td> <td>(</td> <td class="paramtype">const <a class="el" href="classcsDVector3.html">csDVector3</a> & </td> <td class="paramname"> <em>pt</em> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Compute the distance from the given vector to this plane. <p> This function assumes that 'norm' is a unit vector. If not, the function returns distance times the magnitude of 'norm'. <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00417">417</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> <p>References <a class="el" href="math3d__d_8h-source.html#l00036">ABS</a>.</p> </div> </div><p> <a class="anchor" name="cb745d10bc77401bc4c60633bf90eb3f"></a><!-- doxytag: member="csDPlane::Invert" ref="cb745d10bc77401bc4c60633bf90eb3f" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void csDPlane::Invert </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Reverses the direction of the plane while maintianing the plane itself. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00421">421</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <a class="anchor" name="639512a2fd91e2c9be12bdf79dca87f8"></a><!-- doxytag: member="csDPlane::Normal" ref="639512a2fd91e2c9be12bdf79dca87f8" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classcsDVector3.html">csDVector3</a>& csDPlane::Normal </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return the normal vector of this plane. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00380">380</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <a class="anchor" name="d1480e279930669348b0b0d28adf97a4"></a><!-- doxytag: member="csDPlane::Normal" ref="d1480e279930669348b0b0d28adf97a4" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcsDVector3.html">csDVector3</a>& csDPlane::Normal </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return the normal vector of this plane. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00378">378</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <a class="anchor" name="afe8980d1b85f727d7581af8f55f450b"></a><!-- doxytag: member="csDPlane::Normalize" ref="afe8980d1b85f727d7581af8f55f450b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void csDPlane::Normalize </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Normalizes the plane equation so that 'norm' is a unit vector. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00424">424</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <a class="anchor" name="9acb8abba4f22bd58a00bddbc7bccacf"></a><!-- doxytag: member="csDPlane::Set" ref="9acb8abba4f22bd58a00bddbc7bccacf" args="(double a, double b, double c, double d)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void csDPlane::Set </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> <em>a</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>b</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>c</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>d</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set the value of the four plane components. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00401">401</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> </div> </div><p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="b28cc94b9b275b8b645fd1dd07629d27"></a><!-- doxytag: member="csDPlane::DD" ref="b28cc94b9b275b8b645fd1dd07629d27" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="classcsDPlane.html#b28cc94b9b275b8b645fd1dd07629d27">csDPlane::DD</a> </td> </tr> </table> </div> <div class="memdoc"> <p> The D component of the plane. <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00365">365</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> <p>Referenced by <a class="el" href="math3d__d_8h-source.html#l00551">csDMath3::PlanesEqual()</a>.</p> </div> </div><p> <a class="anchor" name="8b2e170fe54d5cdfa648faf3a9c451db"></a><!-- doxytag: member="csDPlane::norm" ref="8b2e170fe54d5cdfa648faf3a9c451db" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcsDVector3.html">csDVector3</a> <a class="el" href="classcsDPlane.html#8b2e170fe54d5cdfa648faf3a9c451db">csDPlane::norm</a> </td> </tr> </table> </div> <div class="memdoc"> <p> The normal vector (or the (A,B,C) components). <p> <p>Definition at line <a class="el" href="math3d__d_8h-source.html#l00362">362</a> of file <a class="el" href="math3d__d_8h-source.html">math3d_d.h</a>.</p> <p>Referenced by <a class="el" href="math3d__d_8h-source.html#l00551">csDMath3::PlanesEqual()</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li>csgeom/<a class="el" href="math3d__d_8h-source.html">math3d_d.h</a></ul> <hr size="1"><address><small>Generated for Crystal Space 1.2.1 by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 </small></address> </div></body> </html>