Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > 28b9e36e96ce34b2567ae5b47a27b2c5 > files > 834

python-qt4-doc-4.10.3-3.mga4.noarch.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QLineF Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QLineF Class Reference<br /><sup><sup>[<a href="qtcore.html">QtCore</a> module]</sup></sup></h1><p>The QLineF class provides a two-dimensional vector using
floating point precision. <a href="#details">More...</a></p>

<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qlinef.html#IntersectType-enum">IntersectType</a></b> { NoIntersection, BoundedIntersection, UnboundedIntersection }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qlinef.html#QLineF">__init__</a></b> (<i>self</i>, QLine&#160;<i>line</i>)</li><li><div class="fn" /><b><a href="qlinef.html#QLineF-2">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qlinef.html#QLineF-3">__init__</a></b> (<i>self</i>, QPointF&#160;<i>apt1</i>, QPointF&#160;<i>apt2</i>)</li><li><div class="fn" /><b><a href="qlinef.html#QLineF-4">__init__</a></b> (<i>self</i>, float&#160;<i>x1pos</i>, float&#160;<i>y1pos</i>, float&#160;<i>x2pos</i>, float&#160;<i>y2pos</i>)</li><li><div class="fn" /><b><a href="qlinef.html#QLineF-5">__init__</a></b> (<i>self</i>, QLineF)</li><li><div class="fn" />float <b><a href="qlinef.html#angle">angle</a></b> (<i>self</i>, QLineF&#160;<i>l</i>)</li><li><div class="fn" />float <b><a href="qlinef.html#angle-2">angle</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qlinef.html#angleTo">angleTo</a></b> (<i>self</i>, QLineF&#160;<i>l</i>)</li><li><div class="fn" />float <b><a href="qlinef.html#dx">dx</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qlinef.html#dy">dy</a></b> (<i>self</i>)</li><li><div class="fn" />IntersectType <b><a href="qlinef.html#intersect">intersect</a></b> (<i>self</i>, QLineF&#160;<i>l</i>, QPointF&#160;<i>intersectionPoint</i>)</li><li><div class="fn" />bool <b><a href="qlinef.html#isNull">isNull</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qlinef.html#length">length</a></b> (<i>self</i>)</li><li><div class="fn" />QLineF <b><a href="qlinef.html#normalVector">normalVector</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qlinef.html#p1">p1</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qlinef.html#p2">p2</a></b> (<i>self</i>)</li><li><div class="fn" />QPointF <b><a href="qlinef.html#pointAt">pointAt</a></b> (<i>self</i>, float&#160;<i>t</i>)</li><li><div class="fn" /><b><a href="qlinef.html#setAngle">setAngle</a></b> (<i>self</i>, float&#160;<i>angle</i>)</li><li><div class="fn" /><b><a href="qlinef.html#setLength">setLength</a></b> (<i>self</i>, float&#160;<i>len</i>)</li><li><div class="fn" /><b><a href="qlinef.html#setLine">setLine</a></b> (<i>self</i>, float&#160;<i>aX1</i>, float&#160;<i>aY1</i>, float&#160;<i>aX2</i>, float&#160;<i>aY2</i>)</li><li><div class="fn" /><b><a href="qlinef.html#setP1">setP1</a></b> (<i>self</i>, QPointF&#160;<i>aP1</i>)</li><li><div class="fn" /><b><a href="qlinef.html#setP2">setP2</a></b> (<i>self</i>, QPointF&#160;<i>aP2</i>)</li><li><div class="fn" /><b><a href="qlinef.html#setPoints">setPoints</a></b> (<i>self</i>, QPointF&#160;<i>aP1</i>, QPointF&#160;<i>aP2</i>)</li><li><div class="fn" />QLine <b><a href="qlinef.html#toLine">toLine</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qlinef.html#translate">translate</a></b> (<i>self</i>, QPointF&#160;<i>point</i>)</li><li><div class="fn" /><b><a href="qlinef.html#translate-2">translate</a></b> (<i>self</i>, float&#160;<i>adx</i>, float&#160;<i>ady</i>)</li><li><div class="fn" />QLineF <b><a href="qlinef.html#translated">translated</a></b> (<i>self</i>, QPointF&#160;<i>p</i>)</li><li><div class="fn" />QLineF <b><a href="qlinef.html#translated-2">translated</a></b> (<i>self</i>, float&#160;<i>adx</i>, float&#160;<i>ady</i>)</li><li><div class="fn" />QLineF <b><a href="qlinef.html#unitVector">unitVector</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qlinef.html#x1">x1</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qlinef.html#x2">x2</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qlinef.html#y1">y1</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qlinef.html#y2">y2</a></b> (<i>self</i>)</li></ul><h3>Static Methods</h3><ul><li><div class="fn" />QLineF <b><a href="qlinef.html#fromPolar">fromPolar</a></b> (float&#160;<i>length</i>, float&#160;<i>angle</i>)</li></ul><h3>Special Methods</h3><ul><li><div class="fn" />QLineF <b><a href="qtgui.html#__mul__-3">__mul__</a></b> (<i>self</i>, QMatrix&#160;<i>m</i>)</li><li><div class="fn" />QLineF <b><a href="qtgui.html#__mul__-9">__mul__</a></b> (<i>self</i>, QTransform&#160;<i>m</i>)</li><li><div class="fn" />int <b><a href="qlinef.html#__bool__">__bool__</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qlinef.html#__eq__">__eq__</a></b> (<i>self</i>, QLineF&#160;<i>d</i>)</li><li><div class="fn" />bool <b><a href="qlinef.html#__ne__">__ne__</a></b> (<i>self</i>, QLineF&#160;<i>d</i>)</li><li><div class="fn" />str <b><a href="qlinef.html#__repr__">__repr__</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>This class can be pickled.</p><p>The QLineF class provides a two-dimensional vector using
floating point precision.</p>
<p>A QLineF describes a finite length line (or line segment) on a
two-dimensional surface. QLineF defines the start and end points of
the line using floating point accuracy for coordinates. Use the
<a href="qlinef.html#toLine">toLine</a>() function to retrieve an
integer based copy of this line.</p>
<table class="generic">
<tr class="odd" valign="top">
<td><img alt="" src="images/qline-point.png" /></td>
<td><img alt="" src="images/qline-coordinates.png" /></td>
</tr>
</table>
<p>The positions of the line's start and end points can be
retrieved using the <a href="qlinef.html#p1">p1</a>(), <a href="qlinef.html#x1">x1</a>(), <a href="qlinef.html#y1">y1</a>(),
<a href="qlinef.html#p2">p2</a>(), <a href="qlinef.html#x2">x2</a>(), and <a href="qlinef.html#y2">y2</a>()
functions. The <a href="qlinef.html#dx">dx</a>() and <a href="qlinef.html#dy">dy</a>() functions return the horizontal and
vertical components of the line, respectively.</p>
<p>The line's length can be retrieved using the <a href="qlinef.html#length">length</a>() function, and altered using the
<a href="qlinef.html#setLength">setLength</a>() function.
Similarly, <a href="qlinef.html#angle">angle</a>() and <a href="qlinef.html#setAngle">setAngle</a>() are respectively used for
retrieving and altering the angle of the line. Use the <a href="qlinef.html#isNull">isNull</a>() function to determine whether the
QLineF represents a valid line or a null line.</p>
<p>The <a href="qlinef.html#intersect">intersect</a>() function
determines the <a href="qlinef.html#IntersectType-enum">IntersectType</a> for this line
and a given line, while the <a href="qlinef.html#angle">angle</a>()
function returns the angle between the lines. In addition, the
<a href="qlinef.html#unitVector">unitVector</a>() function returns
a line that has the same starting point as this line, but with a
length of only 1, while the <a href="qlinef.html#normalVector">normalVector</a>() function returns a
line that is perpendicular to this line with the same starting
point and length.</p>
<p>Finally, the line can be translated a given offset using the
<a href="qlinef.html#translate">translate</a>() function, and can
be traversed using the <a href="qlinef.html#pointAt">pointAt</a>()
function.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="IntersectType-enum" />QLineF.IntersectType</h3><p>Describes the intersection between two lines.</p>
<table class="generic">
<tr class="odd" valign="top">
<td><img alt="" src="images/qlinef-unbounded.png" /></td>
<td><img alt="" src="images/qlinef-bounded.png" /></td>
</tr>
<tr class="even" valign="top">
<td>QLineF.UnboundedIntersection</td>
<td>QLineF.BoundedIntersection</td>
</tr>
</table>
<table class="valuelist">
<tr class="odd" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QLineF.NoIntersection</tt></td>
<td class="topAlign"><tt>0</tt></td>
<td class="topAlign">Indicates that the lines do not intersect;
i.e. they are parallel.</td>
</tr>
<tr>
<td class="topAlign"><tt>QLineF.UnboundedIntersection</tt></td>
<td class="topAlign"><tt>2</tt></td>
<td class="topAlign">The two lines intersect, but not within the
range defined by their lengths. This will be the case if the lines
are not parallel.</td>
</tr>
</table>
<p><a href="qlinef.html#intersect">intersect</a>() will also return
this value if the intersect point is within the start and end point
of only one of the lines.</p>
<table class="valuelist">
<tr class="even" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QLineF.BoundedIntersection</tt></td>
<td class="topAlign"><tt>1</tt></td>
<td class="topAlign">The two lines intersect with each other within
the start and end points of each line.</td>
</tr>
</table>
<p><b>See also</b> <a href="qlinef.html#intersect">intersect</a>().</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QLineF" />QLineF.__init__ (<i>self</i>, <a href="qline.html">QLine</a>&#160;<i>line</i>)</h3><p>Constructs a null line.</p>


<h3 class="fn"><a name="QLineF-2" />QLineF.__init__ (<i>self</i>)</h3><p>Constructs a line object that represents the line between
<i>p1</i> and <i>p2</i>.</p>


<h3 class="fn"><a name="QLineF-3" />QLineF.__init__ (<i>self</i>, <a href="qpointf.html">QPointF</a>&#160;<i>apt1</i>, <a href="qpointf.html">QPointF</a>&#160;<i>apt2</i>)</h3><p>Constructs a line object that represents the line between
(<i>x1</i>, <i>y1</i>) and (<i>x2</i>, <i>y2</i>).</p>


<h3 class="fn"><a name="QLineF-4" />QLineF.__init__ (<i>self</i>, float&#160;<i>x1pos</i>, float&#160;<i>y1pos</i>, float&#160;<i>x2pos</i>, float&#160;<i>y2pos</i>)</h3><p>Construct a <a href="qlinef.html">QLineF</a> object from the
given integer-based <i>line</i>.</p>
<p><b>See also</b> <a href="qlinef.html#toLine">toLine</a>().</p>


<h3 class="fn"><a name="QLineF-5" />QLineF.__init__ (<i>self</i>, <a href="qlinef.html">QLineF</a>)</h3><h3 class="fn"><a name="angle" />float QLineF.angle (<i>self</i>, <a href="qlinef.html">QLineF</a>&#160;<i>l</i>)</h3><p>Returns the angle of the line in degrees.</p>
<p>The return value will be in the range of values from 0.0 up to
but not including 360.0. The angles are measured counter-clockwise
from a point on the x-axis to the right of the origin (x &gt;
0).</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also</b> <a href="qlinef.html#setAngle">setAngle</a>().</p>


<h3 class="fn"><a name="angle-2" />float QLineF.angle (<i>self</i>)</h3><h3 class="fn"><a name="angleTo" />float QLineF.angleTo (<i>self</i>, <a href="qlinef.html">QLineF</a>&#160;<i>l</i>)</h3><p>Returns the angle (in positive degrees) from this line to the
given <i>line</i>, taking the direction of the lines into account.
If the lines do not intersect within their range, it is the
intersection point of the extended lines that serves as origin (see
<a href="qlinef.html#IntersectType-enum">QLineF.UnboundedIntersection</a>).</p>
<p>The returned value represents the number of degrees you need to
add to this line to make it have the same angle as the given
<i>line</i>, going counter-clockwise.</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also</b> <a href="qlinef.html#intersect">intersect</a>().</p>


<h3 class="fn"><a name="dx" />float QLineF.dx (<i>self</i>)</h3><p>Returns the horizontal component of the line's vector. Return
value is positive if <a href="qlinef.html#x2">x2</a>() &gt;=
<a href="qlinef.html#x1">x1</a>() and negative if <a href="qlinef.html#x2">x2</a>() &lt; <a href="qlinef.html#x1">x1</a>().</p>
<p><b>See also</b> <a href="qlinef.html#dy">dy</a>() and <a href="qlinef.html#pointAt">pointAt</a>().</p>


<h3 class="fn"><a name="dy" />float QLineF.dy (<i>self</i>)</h3><p>Returns the vertical component of the line's vector. Return
value is positive if <a href="qlinef.html#y2">y2</a>() &gt;=
<a href="qlinef.html#y1">y1</a>() and negative if <a href="qlinef.html#y2">y2</a>() &lt; <a href="qlinef.html#y1">y1</a>().</p>
<p><b>See also</b> <a href="qlinef.html#dx">dx</a>() and <a href="qlinef.html#pointAt">pointAt</a>().</p>


<h3 class="fn"><a name="fromPolar" /><a href="qlinef.html">QLineF</a> QLineF.fromPolar (float&#160;<i>length</i>, float&#160;<i>angle</i>)</h3><p>Returns a <a href="qlinef.html">QLineF</a> with the given
<i>length</i> and <i>angle</i>.</p>
<p>The first point of the line will be on the origin.</p>
<p>Positive values for the angles mean counter-clockwise while
negative values mean the clockwise direction. Zero degrees is at
the 3 o'clock position.</p>
<p>This function was introduced in Qt 4.4.</p>


<h3 class="fn"><a name="intersect" /><a href="qlinef.html#IntersectType-enum">IntersectType</a> QLineF.intersect (<i>self</i>, <a href="qlinef.html">QLineF</a>&#160;<i>l</i>, <a href="qpointf.html">QPointF</a>&#160;<i>intersectionPoint</i>)</h3><p>Returns a value indicating whether or not <i>this</i> line
intersects with the given <i>line</i>.</p>
<p>The actual intersection point is extracted to
<i>intersectionPoint</i> (if the pointer is valid). If the lines
are parallel, the intersection point is undefined.</p>


<h3 class="fn"><a name="isNull" />bool QLineF.isNull (<i>self</i>)</h3><p>Returns true if the line is not set up with valid start and end
point; otherwise returns false.</p>


<h3 class="fn"><a name="length" />float QLineF.length (<i>self</i>)</h3><p>Returns the length of the line.</p>
<p><b>See also</b> <a href="qlinef.html#setLength">setLength</a>().</p>


<h3 class="fn"><a name="normalVector" /><a href="qlinef.html">QLineF</a> QLineF.normalVector (<i>self</i>)</h3><p>Returns a line that is perpendicular to this line with the same
starting point and length.</p>
<p class="centerAlign"><img alt="" src="images/qlinef-normalvector.png" /></p>
<p><b>See also</b> <a href="qlinef.html#unitVector">unitVector</a>().</p>


<h3 class="fn"><a name="p1" /><a href="qpointf.html">QPointF</a> QLineF.p1 (<i>self</i>)</h3><p>Returns the line's start point.</p>
<p><b>See also</b> <a href="qlinef.html#setP1">setP1</a>(),
<a href="qlinef.html#x1">x1</a>(), <a href="qlinef.html#y1">y1</a>(), and <a href="qlinef.html#p2">p2</a>().</p>


<h3 class="fn"><a name="p2" /><a href="qpointf.html">QPointF</a> QLineF.p2 (<i>self</i>)</h3><p>Returns the line's end point.</p>
<p><b>See also</b> <a href="qlinef.html#setP2">setP2</a>(),
<a href="qlinef.html#x2">x2</a>(), <a href="qlinef.html#y2">y2</a>(), and <a href="qlinef.html#p1">p1</a>().</p>


<h3 class="fn"><a name="pointAt" /><a href="qpointf.html">QPointF</a> QLineF.pointAt (<i>self</i>, float&#160;<i>t</i>)</h3><p>Returns the point at the parameterized position specified by
<i>t</i>. The function returns the line's start point if t = 0, and
its end point if t = 1.</p>
<p><b>See also</b> <a href="qlinef.html#dx">dx</a>() and <a href="qlinef.html#dy">dy</a>().</p>


<h3 class="fn"><a name="setAngle" />QLineF.setAngle (<i>self</i>, float&#160;<i>angle</i>)</h3><p>Sets the angle of the line to the given <i>angle</i> (in
degrees). This will change the position of the second point of the
line such that the line has the given angle.</p>
<p>Positive values for the angles mean counter-clockwise while
negative values mean the clockwise direction. Zero degrees is at
the 3 o'clock position.</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also</b> <a href="qlinef.html#angle">angle</a>().</p>


<h3 class="fn"><a name="setLength" />QLineF.setLength (<i>self</i>, float&#160;<i>len</i>)</h3><p>Sets the length of the line to the given <i>length</i>. <a href="qlinef.html">QLineF</a> will move the end point - <a href="qlinef.html#p2">p2</a>() - of the line to give the line its new
length. If the given <i>length</i> is negative the <a href="qlinef.html#angle">angle</a>() is also changed.</p>
<p>If the line is a null line, the length will remain zero
regardless of the length specified.</p>
<p><b>See also</b> <a href="qlinef.html#length">length</a>() and
<a href="qlinef.html#isNull">isNull</a>().</p>


<h3 class="fn"><a name="setLine" />QLineF.setLine (<i>self</i>, float&#160;<i>aX1</i>, float&#160;<i>aY1</i>, float&#160;<i>aX2</i>, float&#160;<i>aY2</i>)</h3><p>Sets this line to the start in <i>x1</i>, <i>y1</i> and end in
<i>x2</i>, <i>y2</i>.</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also</b> <a href="qlinef.html#setP1">setP1</a>(),
<a href="qlinef.html#setP2">setP2</a>(), <a href="qlinef.html#p1">p1</a>(), and <a href="qlinef.html#p2">p2</a>().</p>


<h3 class="fn"><a name="setP1" />QLineF.setP1 (<i>self</i>, <a href="qpointf.html">QPointF</a>&#160;<i>aP1</i>)</h3><p>Sets the starting point of this line to <i>p1</i>.</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also</b> <a href="qlinef.html#setP2">setP2</a>() and
<a href="qlinef.html#p1">p1</a>().</p>


<h3 class="fn"><a name="setP2" />QLineF.setP2 (<i>self</i>, <a href="qpointf.html">QPointF</a>&#160;<i>aP2</i>)</h3><p>Sets the end point of this line to <i>p2</i>.</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also</b> <a href="qlinef.html#setP1">setP1</a>() and
<a href="qlinef.html#p2">p2</a>().</p>


<h3 class="fn"><a name="setPoints" />QLineF.setPoints (<i>self</i>, <a href="qpointf.html">QPointF</a>&#160;<i>aP1</i>, <a href="qpointf.html">QPointF</a>&#160;<i>aP2</i>)</h3><p>Sets the start point of this line to <i>p1</i> and the end point
of this line to <i>p2</i>.</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also</b> <a href="qlinef.html#setP1">setP1</a>(),
<a href="qlinef.html#setP2">setP2</a>(), <a href="qlinef.html#p1">p1</a>(), and <a href="qlinef.html#p2">p2</a>().</p>


<h3 class="fn"><a name="toLine" /><a href="qline.html">QLine</a> QLineF.toLine (<i>self</i>)</h3><p>Returns an integer based copy of this line.</p>
<p>Note that the returned line's start and end points are rounded
to the nearest integer.</p>
<p><b>See also</b> <a href="qlinef.html#QLineF">QLineF</a>().</p>


<h3 class="fn"><a name="translate" />QLineF.translate (<i>self</i>, <a href="qpointf.html">QPointF</a>&#160;<i>point</i>)</h3><p>Translates this line by the given <i>offset</i>.</p>


<h3 class="fn"><a name="translate-2" />QLineF.translate (<i>self</i>, float&#160;<i>adx</i>, float&#160;<i>ady</i>)</h3><p>This is an overloaded function.</p>
<p>Translates this line the distance specified by <i>dx</i> and
<i>dy</i>.</p>


<h3 class="fn"><a name="translated" /><a href="qlinef.html">QLineF</a> QLineF.translated (<i>self</i>, <a href="qpointf.html">QPointF</a>&#160;<i>p</i>)</h3><p>Returns this line translated by the given <i>offset</i>.</p>
<p>This function was introduced in Qt 4.4.</p>


<h3 class="fn"><a name="translated-2" /><a href="qlinef.html">QLineF</a> QLineF.translated (<i>self</i>, float&#160;<i>adx</i>, float&#160;<i>ady</i>)</h3><p>This is an overloaded function.</p>
<p>Returns this line translated the distance specified by <i>dx</i>
and <i>dy</i>.</p>
<p>This function was introduced in Qt 4.4.</p>


<h3 class="fn"><a name="unitVector" /><a href="qlinef.html">QLineF</a> QLineF.unitVector (<i>self</i>)</h3><p>Returns the unit vector for this line, i.e a line starting at
the same point as <i>this</i> line with a length of 1.0.</p>
<p><b>See also</b> <a href="qlinef.html#normalVector">normalVector</a>().</p>


<h3 class="fn"><a name="x1" />float QLineF.x1 (<i>self</i>)</h3><p>Returns the x-coordinate of the line's start point.</p>
<p><b>See also</b> <a href="qlinef.html#p1">p1</a>().</p>


<h3 class="fn"><a name="x2" />float QLineF.x2 (<i>self</i>)</h3><p>Returns the x-coordinate of the line's end point.</p>
<p><b>See also</b> <a href="qlinef.html#p2">p2</a>().</p>


<h3 class="fn"><a name="y1" />float QLineF.y1 (<i>self</i>)</h3><p>Returns the y-coordinate of the line's start point.</p>
<p><b>See also</b> <a href="qlinef.html#p1">p1</a>().</p>


<h3 class="fn"><a name="y2" />float QLineF.y2 (<i>self</i>)</h3><p>Returns the y-coordinate of the line's end point.</p>
<p><b>See also</b> <a href="qlinef.html#p2">p2</a>().</p>


<h3 class="fn"><a name="__mul__-3" /><a href="qlinef.html">QLineF</a> __mul__ (<i>self</i>, <a href="qmatrix.html">QMatrix</a>&#160;<i>m</i>)</h3><p>This method is only available if the QtGui module is imported.</p><h3 class="fn"><a name="__mul__-9" /><a href="qlinef.html">QLineF</a> __mul__ (<i>self</i>, <a href="qtransform.html">QTransform</a>&#160;<i>m</i>)</h3><p>This method is only available if the QtGui module is imported.</p><h3 class="fn"><a name="__bool__" />int QLineF.__bool__ (<i>self</i>)</h3><h3 class="fn"><a name="__eq__" />bool QLineF.__eq__ (<i>self</i>, <a href="qlinef.html">QLineF</a>&#160;<i>d</i>)</h3><h3 class="fn"><a name="__ne__" />bool QLineF.__ne__ (<i>self</i>, <a href="qlinef.html">QLineF</a>&#160;<i>d</i>)</h3><h3 class="fn"><a name="__repr__" />str QLineF.__repr__ (<i>self</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.10.3 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt&#160;4.8.5</td></tr></table></div></address></body></html>