java.lang.Object
io.qt.QtObject
io.qt.gui.QVector2D
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Represents a vector or vertex in 2D space
Java wrapper for Qt's 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 the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final float
get
(int i) 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
static boolean
qFuzzyCompare
(QVector2D v1, QVector2D v2) void
readFrom
(QDataStream arg__1) final void
set
(int i, float value) 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
-
get
-
set
-
setX
-
setY
-
toPoint
-
toPointF
-
toVector3D
-
toVector4D
-
x
-
y
-
dotProduct
-
qFuzzyCompare
-
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
-