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