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 class QVector2D
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal QVector2D
clone()
Creates and returns a copy of this object.final float
distanceToLine
(QVector2D point, QVector2D direction) final float
distanceToPoint
(QVector2D point) final QVector2D
div
(float divisor) Seeoperator/(QVector2D,
float) final QVector2D
Seeoperator/(QVector2D,
QVector2D) final QVector2D
divide
(float divisor) final QVector2D
static float
dotProduct
(QVector2D v1, QVector2D v2) final boolean
Seeoperator==(QVector2D,
QVector2D) boolean
Seeoperator==(QVector2D,
QVector2D) final float
get
(int i) int
hashCode()
Returns the objects's hash code computed byqHash(QVector2D)
.final boolean
isNull()
final float
length()
final float
final QVector2D
final QVector2D
multiply
(float factor) final QVector2D
final void
final QVector2D
final QVector2D
Seeoperator+(QVector2D,
QVector2D) static boolean
qFuzzyCompare
(QVector2D v1, QVector2D v2) void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QVector2D&) final void
set
(int i, float value) SeeQVector2D::
operator[](int) final void
setX
(float x) final void
setY
(float y) final QVector2D
final QVector2D
times
(float factor) Seeoperator*(QVector2D,
float) final QVector2D
Seeoperator*(QVector2D,
QVector2D) final QPoint
toPoint()
final QPointF
toPointF()
toString()
Seeoperator<<(QDebug,
QVector2D) final QVector3D
final QVector4D
final QVector2D
Seeoperator-(QVector2D)
void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QVector2D) 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)
-
-
Method Details
-
distanceToLine
-
distanceToPoint
-
isNull
-
length
-
lengthSquared
-
normalize
-
normalized
-
times
See
operator*(QVector2D,
QVector2D) -
times
See
operator*(QVector2D,
float) -
multiply
-
multiply
-
plus
See
operator+(QVector2D,
QVector2D) -
add
-
unaryMinus
See
operator-(QVector2D)
-
minus
-
subtract
-
div
See
operator/(QVector2D,
QVector2D) -
div
See
operator/(QVector2D,
float) -
divide
-
divide
-
writeTo
See
operator<<(QDataStream&,
QVector2D) -
equals
See
operator==(QVector2D,
QVector2D) -
readFrom
See
operator>>(QDataStream&,
QVector2D&) -
get
-
set
See
QVector2D::
operator[](int) -
setX
-
setY
-
toPoint
-
toPointF
-
toVector3D
-
toVector4D
-
x
-
y
-
dotProduct
-
qFuzzyCompare
-
equals
See
operator==(QVector2D,
QVector2D) -
hashCode
Returns the objects's hash code computed byqHash(QVector2D)
. -
toString
See
operator<<(QDebug,
QVector2D) -
clone
Creates and returns a copy of this object.
-