📄 line.html
字号:
<HR><A NAME="getY0()"><!-- --></A><H3>getY0</H3><PRE>public final double <B>getY0</B>()</PRE><DL><DD>Returns the <var>y</var> value for <var>x</var>==0. Coordinate (0, <var>y0</var>) is the intersection point with the <var>y</var> axis.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getX0()"><!-- --></A><H3>getX0</H3><PRE>public final double <B>getX0</B>()</PRE><DL><DD>Returns the <var>x</var> value for <var>y</var>==0. Coordinate (<var>x0</var>,0) is the intersection point with the <var>x</var> axis.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getSlope()"><!-- --></A><H3>getSlope</H3><PRE>public final double <B>getSlope</B>()</PRE><DL><DD>Returns the slope.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="intersectionPoint(org.geotools.math.Line)"><!-- --></A><H3>intersectionPoint</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A> <B>intersectionPoint</B>(<A HREF="../../../org/geotools/math/Line.html" title="class in org.geotools.math">Line</A> line)</PRE><DL><DD>Returns the intersection point between this line and the specified one. If both lines are parallel, then this method returns .<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>line</CODE> - The line to intersect.<DT><B>Returns:</B><DD>The intersection point, or .</DL></DD></DL><HR><A NAME="intersectionPoint(java.awt.geom.Line2D)"><!-- --></A><H3>intersectionPoint</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A> <B>intersectionPoint</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Line2D.html" title="class or interface in java.awt.geom">Line2D</A> line)</PRE><DL><DD>Returns the intersection point between this line and the specified bounded line. If both lines are parallel or if the specified doesn't reach this line (since <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Line2D.html" title="class or interface in java.awt.geom"><CODE>Line2D</CODE></A> do not extends toward infinities), then this method returns .<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>line</CODE> - The bounded line to intersect.<DT><B>Returns:</B><DD>The intersection point, or .</DL></DD></DL><HR><A NAME="nearestColinearPoint(java.awt.geom.Point2D)"><!-- --></A><H3>nearestColinearPoint</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A> <B>nearestColinearPoint</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A> point)</PRE><DL><DD>Returns the nearest point on this line from the specified point.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>point</CODE> - An arbitrary point.<DT><B>Returns:</B><DD>The point on this line which is the nearest of the specified .</DL></DD></DL><HR><A NAME="isoscelesTriangleBase(java.awt.geom.Point2D, double)"><!-- --></A><H3>isoscelesTriangleBase</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Line2D.html" title="class or interface in java.awt.geom">Line2D</A> <B>isoscelesTriangleBase</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A> summit, double sideLength)</PRE><DL><DD>Compute the base of a isosceles triangle having the specified summit and side length. The base will be colinear with this line. In other words, this method compute two points (<var>x1</var>,<var>y1</var>) and (<var>x2</var>,<var>y2</var>) located in such a way that: <ul> <li>Both points are on this line.</li> <li>The distance between any of the two points and the specified is exactly .</li> </ul><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>summit</CODE> - The summit of the isosceles triangle.<DD><CODE>sideLength</CODE> - The length for the two sides of the isosceles triangle.<DT><B>Returns:</B><DD>The base of the isoscele triangle, colinear with this line, or if the base can't be computed. If non-null, then the triangle is the figure formed by joining (<var>x1</var>,<var>y1</var>), (<var>x2</var>,<var>y2</var>) and .</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE><DL><DD>Returns a string representation of this line. This method returns the linear equation in the form <code>"y=m*x+b"</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A string representation of this line.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> object)</PRE><DL><DD>Compare this object with the specified one for equality.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns a hash code value for this line.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>clone</B>()</PRE><DL><DD>Returns a clone of this line.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>clone</CODE> in interface <CODE>Cloneable</CODE></DL></DD><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Line.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/geotools/math/Complex.html" title="class in org.geotools.math"><B>PREV CLASS</B></A> <A HREF="../../../org/geotools/math/Plane.html" title="class in org.geotools.math"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="Line.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -