- 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 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.IntersectionType
intersects
(QLine l) Overloaded function forintersects(io.qt.core.QLine, io.qt.core.QPointF)
withintersectionPoint = null
.final QLineF.IntersectionType
intersects
(QLineF l) Overloaded function forintersects(io.qt.core.QLineF, io.qt.core.QPointF)
withintersectionPoint = null
.final QLineF.IntersectionType
intersects
(QLineF l, QPointF intersectionPoint) final QLineF.IntersectionType
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) 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) 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:
-
angleTo
- Parameters:
l
-- Returns:
-
center
- Returns:
-
dx
- Returns:
-
dy
- Returns:
-
intersects
- Parameters:
l
-intersectionPoint
-- Returns:
-
isNull
- Returns:
-
length
- Returns:
-
normalVector
- Returns:
-
writeTo
- Parameters:
arg__1
-
-
equals
- Parameters:
d
-- Returns:
-
readFrom
- Parameters:
arg__1
-
-
p1
- Returns:
-
p2
- Returns:
-
pointAt
- Parameters:
t
-- Returns:
-
setAngle
- Parameters:
angle
-
-
setLength
- Parameters:
len
-
-
setLine
- Parameters:
x1
-y1
-x2
-y2
-
-
setP1
- Parameters:
p1
-
-
setP2
- Parameters:
p2
-
-
setPoints
- Parameters:
p1
-p2
-
-
toLine
- Returns:
-
translate
- Parameters:
p
-
-
translate
- Parameters:
dx
-dy
-
-
translated
- Parameters:
p
-- Returns:
-
translated
- Parameters:
dx
-dy
-- Returns:
-
unitVector
- Returns:
-
x1
- Returns:
-
x2
- Returns:
-
y1
- Returns:
-
y2
- Returns:
-
fromPolar
- Parameters:
length
-angle
-- Returns:
-
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) -
angleTo
Overloaded function for
angleTo(io.qt.core.QLineF)
. -
intersects
Overloaded function for
intersects(io.qt.core.QLineF, io.qt.core.QPointF)
withintersectionPoint = null
. -
intersects
Overloaded function for
intersects(io.qt.core.QLine, io.qt.core.QPointF)
withintersectionPoint = null
. -
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)
.
-