📄 rect.html
字号:
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../rtree/Rect.html#initNull()">initNull</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../rtree/Rect.html" title="class in rtree">Rect</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../rtree/Rect.html#intersection(rtree.Rect)">intersection</A></B>(<A HREF="../rtree/Rect.html" title="class in rtree">Rect</A> rect)</CODE>
<BR>
Will return the intersection of the <code>this</code> and <code>rect</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../rtree/Rect.html#isNull()">isNull</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../rtree/Rect.html#meet(rtree.Rect)">meet</A></B>(<A HREF="../rtree/Rect.html" title="class in rtree">Rect</A> rect)</CODE>
<BR>
Checks if both the rectangles meet or not.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../rtree/Rect.html#minDist(rtree.Point, rtree.Rect)">minDist</A></B>(<A HREF="../rtree/Point.html" title="class in rtree">Point</A> p, <A HREF="../rtree/Rect.html" title="class in rtree">Rect</A> rect)</CODE>
<BR>
Calculate the Euclidean distance between the point and the MBR.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../rtree/Rect.html#minMaxDist(rtree.Point, rtree.Rect)">minMaxDist</A></B>(<A HREF="../rtree/Point.html" title="class in rtree">Point</A> p, <A HREF="../rtree/Rect.html" title="class in rtree">Rect</A> rect)</CODE>
<BR>
To find the minimum of the maximum distances from a point to a Rectangle <b>(Not implemeneted yet).</b> For further details see Roussopoulos.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../rtree/Rect.html#overlaps(rtree.Rect)">overlaps</A></B>(<A HREF="../rtree/Rect.html" title="class in rtree">Rect</A> rect)</CODE>
<BR>
This method also gives whether one point is over another, if you do not want that much precision then comment the line.This will improve performance.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../rtree/Rect.html#sizeInBytes()">sizeInBytes</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../rtree/Rect.html#toString()">toString</A></B>()</CODE>
<BR>
</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="minX"><!-- --></A><H3>
minX</H3>
<PRE>
private int <B>minX</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="minY"><!-- --></A><H3>
minY</H3>
<PRE>
private int <B>minY</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="maxX"><!-- --></A><H3>
maxX</H3>
<PRE>
private int <B>maxX</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="maxY"><!-- --></A><H3>
maxY</H3>
<PRE>
private int <B>maxY</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="isNull"><!-- --></A><H3>
isNull</H3>
<PRE>
boolean <B>isNull</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="Rect()"><!-- --></A><H3>
Rect</H3>
<PRE>
public <B>Rect</B>()</PRE>
<DL>
</DL>
<HR>
<A NAME="Rect(int, int, int, int)"><!-- --></A><H3>
Rect</H3>
<PRE>
public <B>Rect</B>(int topX, int topY, int botX, int botY) throws <A HREF="../rtree/IllegalValueException.html" title="class in rtree">IllegalValueException</A></PRE>
<DL>
</DL>
<HR>
<A NAME="Rect(rtree.Rect)"><!-- --></A><H3>
Rect</H3>
<PRE>
<B>Rect</B>(<A HREF="../rtree/Rect.html" title="class in rtree">Rect</A> rect)throws <A HREF="../rtree/IllegalValueException.html" title="class in rtree">IllegalValueException</A></PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="initNull()"><!-- --></A><H3>
initNull</H3>
<PRE>
private void <B>initNull</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="init(int, int, int, int)"><!-- --></A><H3>
init</H3>
<PRE>
private void <B>init</B>(int minX, int minY, int maxX, int maxY)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isNull()"><!-- --></A><H3>
isNull</H3>
<PRE>
public boolean <B>isNull</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="sizeInBytes()"><!-- --></A><H3>
sizeInBytes</H3>
<PRE>
public static int <B>sizeInBytes</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getArea()"><!-- --></A><H3>
getArea</H3>
<PRE>
public int <B>getArea</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getWidth()"><!-- --></A><H3>
getWidth</H3>
<PRE>
public int <B>getWidth</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getHeight()"><!-- --></A><H3>
getHeight</H3>
<PRE>
public int <B>getHeight</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMinX()"><!-- --></A><H3>
getMinX</H3>
<PRE>
public int <B>getMinX</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMinY()"><!-- --></A><H3>
getMinY</H3>
<PRE>
public int <B>getMinY</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMaxX()"><!-- --></A><H3>
getMaxX</H3>
<PRE>
public int <B>getMaxX</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMaxY()"><!-- --></A><H3>
getMaxY</H3>
<PRE>
public int <B>getMaxY</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="expandToInclude(rtree.Rect)"><!-- --></A><H3>
expandToInclude</H3>
<PRE>
public void <B>expandToInclude</B>(<A HREF="../rtree/Rect.html" title="class in rtree">Rect</A> rect)</PRE>
<DL>
<DD>Include the given Rectangle.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getResultingMBR(rtree.Rect)"><!-- --></A><H3>
getResultingMBR</H3>
<PRE>
public <A HREF="../rtree/Rect.html" title="class in rtree">Rect</A> <B>getResultingMBR</B>(<A HREF="../rtree/Rect.html" title="class in rtree">Rect</A> rectangle) throws <A HREF="../rtree/IllegalValueException.html" title="class in rtree">IllegalValueException</A></PRE>
<DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -