java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QVector4D
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QVector4D extends QtObject implements Cloneable
Represents a vector or vertex in 4D space
Java wrapper for Qt class QVector4D
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QVector4D()
QVector4D(float xpos, float ypos, float zpos, float wpos)
QVector4D(QPoint point)
QVector4D(QPointF point)
QVector4D(QVector2D vector)
QVector4D(QVector2D vector, float zpos, float wpos)
QVector4D(QVector3D vector)
QVector4D(QVector3D vector, float wpos)
protected
QVector4D(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QVector4D
add(QVector4D vector)
QVector4D
clone()
QVector4D
divide(float divisor)
QVector4D
divide(QVector4D vector)
static float
dotProduct(QVector4D v1, QVector4D 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()
QVector4D
multiply(float factor)
QVector4D
multiply(QVector4D vector)
void
normalize()
QVector4D
normalized()
void
readFrom(QDataStream arg__1)
void
setW(float w)
void
setX(float x)
void
setY(float y)
void
setZ(float z)
QVector4D
subtract(QVector4D vector)
QPoint
toPoint()
QPointF
toPointF()
String
toString()
QVector2D
toVector2D()
QVector2D
toVector2DAffine()
QVector3D
toVector3D()
QVector3D
toVector3DAffine()
float
w()
void
writeTo(QDataStream arg__1)
float
x()
float
y()
float
z()
-
Constructor Details
-
Method Details
-
isNull
-
length
-
lengthSquared
-
normalize
-
normalized
-
multiply
-
multiply
-
add
-
subtract
-
divide
-
divide
-
writeTo
-
readFrom
-
setW
-
setX
-
setY
-
setZ
-
toPoint
-
toPointF
-
toVector2D
-
toVector2DAffine
-
toVector3D
-
toVector3DAffine
-
w
-
x
-
y
-
z
-
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
-