java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QVector2D
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Represents a vector or vertex in 2D space
Java wrapper for Qt class QVector2D
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQVector2D
(float xpos, float ypos) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QVector2D
clone()
final float
distanceToLine
(QVector2D point, QVector2D direction) final float
distanceToPoint
(QVector2D point) final QVector2D
div
(float divisor) final QVector2D
final QVector2D
divide
(float divisor) final QVector2D
static float
dotProduct
(QVector2D v1, QVector2D v2) boolean
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.int
hashCode()
final boolean
isNull()
final float
length()
final float
final QVector2D
final QVector2D
multiply
(float factor) final QVector2D
final void
final QVector2D
final QVector2D
void
readFrom
(QDataStream arg__1) final void
setX
(float x) final void
setY
(float y) final QVector2D
final QVector2D
times
(float factor) final QVector2D
final QPoint
toPoint()
final QPointF
toPointF()
toString()
final QVector3D
final QVector4D
final QVector2D
void
writeTo
(QDataStream arg__1) final float
x()
final float
y()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QVector2D
public QVector2D() -
QVector2D
-
QVector2D
-
QVector2D
-
QVector2D
-
QVector2D
public QVector2D(float xpos, float ypos) -
QVector2D
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
distanceToLine
-
distanceToPoint
-
isNull
-
length
-
lengthSquared
-
normalize
-
normalized
-
times
-
times
-
multiply
-
multiply
-
plus
-
add
-
unaryMinus
-
minus
-
subtract
-
div
-
div
-
divide
-
divide
-
writeTo
-
readFrom
-
setX
-
setY
-
toPoint
-
toPointF
-
toVector3D
-
toVector4D
-
x
-
y
-
dotProduct
-
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
-