java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QVector3D
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QVector3D extends QtObject implements Cloneable
Represents a vector or vertex in 3D space
Java wrapper for Qt class QVector3D
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QVector3D()
QVector3D(float xpos, float ypos, float zpos)
QVector3D(QPoint point)
QVector3D(QPointF point)
QVector3D(QVector2D vector)
QVector3D(QVector2D vector, float zpos)
QVector3D(QVector4D vector)
protected
QVector3D(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QVector3D
add(QVector3D vector)
QVector3D
clone()
static QVector3D
crossProduct(QVector3D v1, QVector3D v2)
float
distanceToLine(QVector3D point, QVector3D direction)
float
distanceToPlane(QVector3D plane, QVector3D normal)
float
distanceToPlane(QVector3D plane1, QVector3D plane2, QVector3D plane3)
float
distanceToPoint(QVector3D point)
QVector3D
divide(float divisor)
QVector3D
divide(QVector3D vector)
static float
dotProduct(QVector3D v1, QVector3D 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()
QVector3D
multiply(float factor)
QVector3D
multiply(QVector3D vector)
static QVector3D
normal(QVector3D v1, QVector3D v2)
static QVector3D
normal(QVector3D v1, QVector3D v2, QVector3D v3)
void
normalize()
QVector3D
normalized()
QVector3D
project(QMatrix4x4 modelView, QMatrix4x4 projection, QRect viewport)
void
readFrom(QDataStream arg__1)
void
setX(float x)
void
setY(float y)
void
setZ(float z)
QVector3D
subtract(QVector3D vector)
QPoint
toPoint()
QPointF
toPointF()
String
toString()
QVector2D
toVector2D()
QVector4D
toVector4D()
QVector3D
unproject(QMatrix4x4 modelView, QMatrix4x4 projection, QRect viewport)
void
writeTo(QDataStream arg__1)
float
x()
float
y()
float
z()
-
Constructor Details
-
Method Details
-
distanceToLine
-
distanceToPlane
-
distanceToPlane
@QtUninvokable public final float distanceToPlane(QVector3D plane1, QVector3D plane2, QVector3D plane3) -
distanceToPoint
-
isNull
-
length
-
lengthSquared
-
normalize
-
normalized
-
multiply
-
multiply
-
add
-
subtract
-
divide
-
divide
-
writeTo
-
readFrom
-
project
@QtUninvokable public final QVector3D project(QMatrix4x4 modelView, QMatrix4x4 projection, QRect viewport) -
setX
-
setY
-
setZ
-
toPoint
-
toPointF
-
toVector2D
-
toVector4D
-
unproject
@QtUninvokable public final QVector3D unproject(QMatrix4x4 modelView, QMatrix4x4 projection, QRect viewport) -
x
-
y
-
z
-
crossProduct
-
dotProduct
-
normal
-
normal
-
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
-
toString
-
clone
-