java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QVector2D
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QVector2D extends QtObject implements Cloneable
Represents a vector or vertex in 2D space
Java wrapper for Qt class QVector2D
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description QVector2D
add(QVector2D vector)
QVector2D
clone()
float
distanceToLine(QVector2D point, QVector2D direction)
float
distanceToPoint(QVector2D point)
QVector2D
divide(float divisor)
QVector2D
divide(QVector2D vector)
static float
dotProduct(QVector2D v1, QVector2D v2)
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.int
hashCode()
boolean
isNull()
float
length()
float
lengthSquared()
QVector2D
multiply(float factor)
QVector2D
multiply(QVector2D vector)
void
normalize()
QVector2D
normalized()
void
readFrom(QDataStream arg__1)
void
setX(float x)
void
setY(float y)
QVector2D
subtract(QVector2D vector)
QPoint
toPoint()
QPointF
toPointF()
String
toString()
QVector3D
toVector3D()
QVector4D
toVector4D()
void
writeTo(QDataStream arg__1)
float
x()
float
y()
-
Constructor Details
-
Method Details
-
distanceToLine
-
distanceToPoint
-
isNull
-
length
-
lengthSquared
-
normalize
-
normalized
-
multiply
-
multiply
-
add
-
subtract
-
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
public int hashCode() -
toString
-
clone
-