📄 classrectangle.html
字号:
<!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>rectangle class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> </center>
<hr><h1>rectangle Class Reference</h1><code>#include <<a class="el" href="rectangle_8h-source.html">rectangle.h</a>></code>
<p>
<a href="classrectangle-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 Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classrectangle.html#rectanglea0">operator+=</a> (rectangle const &r)</td></tr>
<tr><td nowrap align=right valign=top>rectangle </td><td valign=bottom><a class="el" href="classrectangle.html#rectanglea1">operator+</a> (rectangle const &r) const</td></tr>
<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classrectangle.html#rectanglea2">operator &</a> (rectangle const &r) const</td></tr>
<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classrectangle.html#rectanglea3">operator<=</a> (rectangle const &r) const</td></tr>
<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classrectangle.html#rectanglea4">operator>=</a> (rectangle const &r) const</td></tr>
<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classrectangle.html#rectanglea5">operator<</a> (rectangle const &r) const</td></tr>
<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classrectangle.html#rectanglea6">operator></a> (rectangle const &r) const</td></tr>
<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classrectangle.html#rectanglea7">operator==</a> (rectangle const &r) const</td></tr>
<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classrectangle.html#rectanglea8">operator!=</a> (rectangle const &r) const</td></tr>
<tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top>coord_t </td><td valign=bottom><a class="el" href="classrectangle.html#rectanglem0">boundary</a> [dim *2]</td></tr>
<tr><td colspan=2><br><h2>Friends</h2></td></tr>
<tr><td nowrap align=right valign=top>coord_t FASTDB_DLL_ENTRY </td><td valign=bottom><a class="el" href="classrectangle.html#rectanglel0">distance</a> (rectangle const &r, rectangle const &q)</td></tr>
<tr><td nowrap align=right valign=top>area_t </td><td valign=bottom><a class="el" href="classrectangle.html#rectanglel1">area</a> (rectangle const &r)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Multidimensional rectangle
<p>
<hr><h2>Member Function Documentation</h2>
<a name="rectanglea2" doxytag="rectangle::operator &"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool rectangle::operator & </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">rectangle const & </td>
<td class="mdname1" valign="top" nowrap> <em>r</em> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Intersect two rectangles </td>
</tr>
</table>
<a name="rectanglea8" doxytag="rectangle::operator!="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool rectangle::operator!= </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">rectangle const & </td>
<td class="mdname1" valign="top" nowrap> <em>r</em> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Check if two rectangle are not the same </td>
</tr>
</table>
<a name="rectanglea1" doxytag="rectangle::operator+"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> rectangle rectangle::operator+ </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">rectangle const & </td>
<td class="mdname1" valign="top" nowrap> <em>r</em> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Join two rectangles: construct enveloping rectangle </td>
</tr>
</table>
<a name="rectanglea0" doxytag="rectangle::operator+="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void rectangle::operator+= </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">rectangle const & </td>
<td class="mdname1" valign="top" nowrap> <em>r</em> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Join two rectangles: construct enveloping rectangle </td>
</tr>
</table>
<a name="rectanglea5" doxytag="rectangle::operator<"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool rectangle::operator< </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">rectangle const & </td>
<td class="mdname1" valign="top" nowrap> <em>r</em> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Check if rectangle is strict subpart of other rectanle <dl compact><dt><b>Returns: </b></dt><dd>
<code>true</code> if this rectangle is part of rectangle <code>r</code> and not the same </dl> </td>
</tr>
</table>
<a name="rectanglea3" doxytag="rectangle::operator<="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool rectangle::operator<= </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">rectangle const & </td>
<td class="mdname1" valign="top" nowrap> <em>r</em> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Check if rectangle is part of other rectanle <dl compact><dt><b>Returns: </b></dt><dd>
<code>true</code> if this rectangle is part of rectangle <code>r</code> </dl> </td>
</tr>
</table>
<a name="rectanglea7" doxytag="rectangle::operator=="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool rectangle::operator== </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">rectangle const & </td>
<td class="mdname1" valign="top" nowrap> <em>r</em> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Check if two rectangle are the same </td>
</tr>
</table>
<a name="rectanglea6" doxytag="rectangle::operator>"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool rectangle::operator> </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">rectangle const & </td>
<td class="mdname1" valign="top" nowrap> <em>r</em> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Check if rectangle is strict subpart of other rectanle <dl compact><dt><b>Returns: </b></dt><dd>
<code>true</code> if this rectangle contains rectangle <code>r</code> and not the same </dl> </td>
</tr>
</table>
<a name="rectanglea4" doxytag="rectangle::operator>="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool rectangle::operator>= </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">rectangle const & </td>
<td class="mdname1" valign="top" nowrap> <em>r</em> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Check if rectangle is part of other rectanle <dl compact><dt><b>Returns: </b></dt><dd>
<code>true</code> if this rectangle contains rectangle <code>r</code> </dl> </td>
</tr>
</table>
<hr><h2>Friends And Related Function Documentation</h2>
<a name="rectanglel1" doxytag="rectangle::area"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> area_t area </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">rectangle const & </td>
<td class="mdname1" valign="top" nowrap> <em>r</em> </td>
<td class="md" valign="top">) </td>
<td class="md" nowrap><code> [friend]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Caclulate area of rectangle </td>
</tr>
</table>
<a name="rectanglel0" doxytag="rectangle::distance"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> coord_t FASTDB_DLL_ENTRY distance </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">rectangle const & </td>
<td class="mdname" nowrap> <em>r</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>rectangle const & </td>
<td class="mdname" nowrap> <em>q</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [friend]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Calculate distance between two rectangles </td>
</tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="rectanglem0" doxytag="rectangle::boundary"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> coord_t rectangle::boundary[dim*2]
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Boundary array contains coordinates of two vertices specifying rectangle of "dim" dimmension. First vertex has coordinaes (boundary[0], ..., boundary[dim]) Second vertext has coordinates (boundary[dim], ..., boundary[dim*2-1]) Precondition: for i = 0, dim : boundary[i] <= boundary[dim+i] </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="rectangle_8h-source.html">rectangle.h</a></ul>
<hr><address style="align: right;"><small>Generated on Thu Feb 14 12:42:31 2008 for FastDB by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.2.18 </small></address>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -