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.IntersectionType
Java wrapper for Qt enum QLineF::IntersectionType -
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
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.IntersectionType
intersects(QLineF l)
Overloaded function forintersects(io.qt.core.QLineF, io.qt.core.QPointF)
withintersectionPoint = null
.QLineF.IntersectionType
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
-
angleTo
-
center
-
dx
-
dy
-
intersects
Overloaded function for
intersects(io.qt.core.QLineF, io.qt.core.QPointF)
withintersectionPoint = null
. -
intersects
@QtUninvokable public final QLineF.IntersectionType intersects(QLineF l, QPointF intersectionPoint) -
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
-