- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Two-dimensional vector using floating point precision
Java wrapper for Qt class QLineF
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionQLineF()
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 double
angle()
final double
Overloaded function forangle(io.qt.core.QLineF)
.final double
final double
Overloaded function forangleTo(io.qt.core.QLineF)
.final double
final QPointF
center()
clone()
Creates and returns a copy of this object.final double
dx()
final double
dy()
final boolean
Overloaded function forequals(io.qt.core.QLineF)
.final boolean
boolean
static QLineF
fromPolar
(double length, double angle) int
hashCode()
Returns the objects's hash code computed byqHash(QLineF)
.final QLineF.IntersectType
final QLineF.IntersectType
Overloaded function forintersect(io.qt.core.QLineF, io.qt.core.QPointF)
.final QLineF.IntersectType
intersects
(QLineF l, QPointF intersectionPoint) final QLineF.IntersectType
intersects
(QLine l, QPointF intersectionPoint) Overloaded function forintersects(io.qt.core.QLineF, io.qt.core.QPointF)
.final boolean
isNull()
final double
length()
final QLineF
final QPointF
p1()
final QPointF
p2()
final QPointF
pointAt
(double t) void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QLineF&) final void
setAngle
(double angle) final void
setLength
(double len) final void
setLine
(double x1, double y1, double x2, double y2) final void
Overloaded function forsetP1(io.qt.core.QPointF)
.final void
final void
Overloaded function forsetP2(io.qt.core.QPointF)
.final void
final void
Overloaded function forsetPoints(io.qt.core.QPointF, io.qt.core.QPointF)
.final void
final void
Overloaded function forsetPoints(io.qt.core.QPointF, io.qt.core.QPointF)
.final void
Overloaded function forsetPoints(io.qt.core.QPointF, io.qt.core.QPointF)
.final QLine
toLine()
toString()
Seeoperator<<(QDebug,
QLineF) final void
translate
(double dx, double dy) final void
Overloaded function fortranslate(io.qt.core.QPointF)
.final void
final QLineF
translated
(double dx, double dy) final QLineF
translated
(QPoint p) Overloaded function fortranslated(io.qt.core.QPointF)
.final QLineF
final QLineF
void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QLineF) final double
x1()
final double
x2()
final double
y1()
final double
y2()
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)
.
-