java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.core.QLineF
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Two-dimensional vector using floating point precision
Java wrapper for Qt's class QLineF
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQLineF()
See QLineF::QLineF()QLineF
(double x1, double y1, double x2, double y2) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal double
angle()
final double
Deprecated.Use qMin(l1.angleTo(l2), l2.angleTo(l1)) insteadfinal double
final QPointF
center()
clone()
final double
dx()
final double
dy()
boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.static QLineF
fromPolar
(double length, double angle) int
hashCode()
final QLineF.IntersectType
Deprecated.final QLineF.IntersectType
intersects
(QLineF l, QPointF intersectionPoint) 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
final void
final void
final QLine
toLine()
toString()
final void
translate
(double dx, double dy) final void
final QLineF
translated
(double dx, double dy) 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
-
QLineF
-
QLineF
public QLineF(double x1, double y1, double x2, double y2) -
QLineF
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
angle
-
angle
Deprecated.Use qMin(l1.angleTo(l2), l2.angleTo(l1)) instead -
angleTo
-
center
-
dx
-
dy
-
intersect
@Deprecated @QtUninvokable public final QLineF.IntersectType intersect(QLineF l, QPointF intersectionPoint) Deprecated. -
intersects
-
isNull
-
length
-
normalVector
-
writeTo
-
readFrom
-
p1
-
p2
-
pointAt
-
setAngle
-
setLength
-
setLine
-
setP1
-
setP2
-
setPoints
-
toLine
-
translate
-
translate
-
translated
-
translated
-
unitVector
-
x1
-
x2
-
y1
-
y2
-
fromPolar
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-