java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QLineF
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QLineF extends QtObject implements Cloneable
Two-dimensional vector using floating point precision
Java wrapper for Qt class QLineF
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QLineF.IntersectType
Java wrapper for Qt enum QLineF::IntersectType -
Constructor Summary
Constructors Modifier Constructor Description QLineF()
See QLineF::QLineF()QLineF(double x1, double y1, double x2, double y2)
QLineF(QLine line)
QLineF(QPointF pt1, QPointF pt2)
protected
QLineF(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description double
angle()
double
angle(QLineF l)
Deprecated.Use qMin(l1.angleTo(l2), l2.angleTo(l1)) insteaddouble
angleTo(QLineF l)
QPointF
center()
QLineF
clone()
double
dx()
double
dy()
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.static QLineF
fromPolar(double length, double angle)
int
hashCode()
QLineF.IntersectType
intersect(QLineF l, QPointF intersectionPoint)
Deprecated.QLineF.IntersectType
intersects(QLineF l, QPointF intersectionPoint)
boolean
isNull()
double
length()
QLineF
normalVector()
QPointF
p1()
QPointF
p2()
QPointF
pointAt(double t)
void
readFrom(QDataStream arg__1)
void
setAngle(double angle)
void
setLength(double len)
void
setLine(double x1, double y1, double x2, double y2)
void
setP1(QPointF p1)
void
setP2(QPointF p2)
void
setPoints(QPointF p1, QPointF p2)
QLine
toLine()
String
toString()
void
translate(double dx, double dy)
void
translate(QPointF p)
QLineF
translated(double dx, double dy)
QLineF
translated(QPointF p)
QLineF
unitVector()
void
writeTo(QDataStream arg__1)
double
x1()
double
x2()
double
y1()
double
y2()
-
Constructor Details
-
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 native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-