- All Implemented Interfaces:
QtObjectInterface,Cloneable
Two-dimensional vector using floating point precision
Java wrapper for Qt class QLineF
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionQLineF()SeeQLineF::QLineF() QLineF(double x1, double y1, double x2, double y2) SeeQLineF::QLineF(QLineF) Overloaded constructor forQLineF(io.qt.core.QPointF, io.qt.core.QPointF).Overloaded constructor forQLineF(io.qt.core.QPointF, io.qt.core.QPointF).Overloaded constructor forQLineF(io.qt.core.QPointF, io.qt.core.QPointF). -
Method Summary
Modifier and TypeMethodDescriptionfinal doubleangle()final doubleOverloaded function forangle(io.qt.core.QLineF).final doublefinal doubleOverloaded function forangleTo(io.qt.core.QLineF).final doublefinal QPointFcenter()clone()Creates and returns a copy of this object.final doubledx()final doubledy()final booleanOverloaded function forequals(io.qt.core.QLineF).final booleanbooleanstatic QLineFfromPolar(double length, double angle) inthashCode()Returns the objects's hash code computed byqHash(QLineF).final QLineF.IntersectTypefinal QLineF.IntersectTypeOverloaded function forintersect(io.qt.core.QLineF, io.qt.core.QPointF).final QLineF.IntersectTypeintersects(QLineF l, QPointF intersectionPoint) final QLineF.IntersectTypeintersects(QLine l, QPointF intersectionPoint) Overloaded function forintersects(io.qt.core.QLineF, io.qt.core.QPointF).final booleanisNull()final doublelength()final QLineFfinal QPointFp1()final QPointFp2()final QPointFpointAt(double t) voidreadFrom(QDataStream arg__1) Seeoperator>>(QDataStream&,QLineF&) final voidsetAngle(double angle) final voidsetLength(double len) final voidsetLine(double x1, double y1, double x2, double y2) final voidOverloaded function forsetP1(io.qt.core.QPointF).final voidfinal voidOverloaded function forsetP2(io.qt.core.QPointF).final voidfinal voidOverloaded function forsetPoints(io.qt.core.QPointF, io.qt.core.QPointF).final voidfinal voidOverloaded function forsetPoints(io.qt.core.QPointF, io.qt.core.QPointF).final voidOverloaded function forsetPoints(io.qt.core.QPointF, io.qt.core.QPointF).final QLinetoLine()toString()Seeoperator<<(QDebug,QLineF) final voidtranslate(double dx, double dy) final voidOverloaded function fortranslate(io.qt.core.QPointF).final voidfinal QLineFtranslated(double dx, double dy) final QLineFtranslated(QPoint p) Overloaded function fortranslated(io.qt.core.QPointF).final QLineFfinal QLineFvoidwriteTo(QDataStream arg__1) Seeoperator<<(QDataStream&,QLineF) final doublex1()final doublex2()final doubley1()final doubley2()Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QLineF
public QLineF()See
QLineF::QLineF() -
QLineF
- Parameters:
line-
-
QLineF
See
QLineF::QLineF(QLineF) - Parameters:
other-
-
QLineF
- Parameters:
pt1-pt2-
-
QLineF
public QLineF(double x1, double y1, double x2, double y2) - Parameters:
x1-y1-x2-y2-
-
QLineF
Overloaded constructor for
QLineF(io.qt.core.QPointF, io.qt.core.QPointF). -
QLineF
Overloaded constructor for
QLineF(io.qt.core.QPointF, io.qt.core.QPointF). -
QLineF
Overloaded constructor for
QLineF(io.qt.core.QPointF, io.qt.core.QPointF).
-
-
Method Details
-
angle
- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
angle
- Parameters:
l-- Returns:
-
angleTo
- Parameters:
l-- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
center
- Returns:
- Since:
- This function was introduced in Qt 5.8.
-
dx
- Returns:
-
dy
- Returns:
-
intersect
- Parameters:
l-intersectionPoint-- Returns:
-
intersects
- Parameters:
l-intersectionPoint-- Returns:
- Since:
- This function was introduced in Qt 5.14.
-
isNull
- Returns:
-
length
- Returns:
-
normalVector
- Returns:
-
writeTo
See
operator<<(QDataStream&,QLineF) - Parameters:
arg__1-
-
equals
- Parameters:
d-- Returns:
-
readFrom
See
operator>>(QDataStream&,QLineF&) - Parameters:
arg__1-
-
p1
- Returns:
-
p2
- Returns:
-
pointAt
- Parameters:
t-- Returns:
-
setAngle
- Parameters:
angle-- Since:
- This function was introduced in Qt 4.4.
-
setLength
- Parameters:
len-
-
setLine
- Parameters:
x1-y1-x2-y2-- Since:
- This function was introduced in Qt 4.4.
-
setP1
- Parameters:
p1-- Since:
- This function was introduced in Qt 4.4.
-
setP2
- Parameters:
p2-- Since:
- This function was introduced in Qt 4.4.
-
setPoints
- Parameters:
p1-p2-- Since:
- This function was introduced in Qt 4.4.
-
toLine
- Returns:
-
translate
- Parameters:
p-
-
translate
- Parameters:
dx-dy-
-
translated
- Parameters:
p-- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
translated
- Parameters:
dx-dy-- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
unitVector
- Returns:
-
x1
- Returns:
-
x2
- Returns:
-
y1
- Returns:
-
y2
- Returns:
-
fromPolar
- Parameters:
length-angle-- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QLineF). -
toString
See
operator<<(QDebug,QLineF) -
clone
Creates and returns a copy of this object.
See
QLineF::QLineF(QLineF) -
angle
Overloaded function for
angle(io.qt.core.QLineF). -
angleTo
Overloaded function for
angleTo(io.qt.core.QLineF). -
intersect
Overloaded function for
intersect(io.qt.core.QLineF, io.qt.core.QPointF). -
intersects
Overloaded function for
intersects(io.qt.core.QLineF, io.qt.core.QPointF). -
equals
Overloaded function for
equals(io.qt.core.QLineF). -
setP1
Overloaded function for
setP1(io.qt.core.QPointF). -
setP2
Overloaded function for
setP2(io.qt.core.QPointF). -
setPoints
Overloaded function for
setPoints(io.qt.core.QPointF, io.qt.core.QPointF). -
setPoints
Overloaded function for
setPoints(io.qt.core.QPointF, io.qt.core.QPointF). -
setPoints
Overloaded function for
setPoints(io.qt.core.QPointF, io.qt.core.QPointF). -
translate
Overloaded function for
translate(io.qt.core.QPointF). -
translated
Overloaded function for
translated(io.qt.core.QPointF).
-