java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.gui.QVector3D
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Represents a vector or vertex in 3D space
Java wrapper for Qt's class QVector3D
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQVector3D
(float xpos, float ypos, float zpos) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QVector3D
clone()
static QVector3D
crossProduct
(QVector3D v1, QVector3D v2) final float
distanceToLine
(QVector3D point, QVector3D direction) final float
distanceToPlane
(QVector3D plane, QVector3D normal) final float
distanceToPlane
(QVector3D plane1, QVector3D plane2, QVector3D plane3) final float
distanceToPoint
(QVector3D point) final QVector3D
div
(float divisor) final QVector3D
final QVector3D
divide
(float divisor) final QVector3D
static float
dotProduct
(QVector3D v1, QVector3D v2) boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.int
hashCode()
final boolean
isNull()
final float
length()
final float
final QVector3D
final QVector3D
multiply
(float factor) final QVector3D
static QVector3D
static QVector3D
final void
final QVector3D
final QVector3D
final QVector3D
project
(QMatrix4x4 modelView, QMatrix4x4 projection, QRect viewport) void
readFrom
(QDataStream arg__1) final void
setX
(float x) final void
setY
(float y) final void
setZ
(float z) final QVector3D
final QVector3D
times
(float factor) final QVector3D
final QPoint
toPoint()
final QPointF
toPointF()
toString()
final QVector2D
final QVector4D
final QVector3D
final QVector3D
unproject
(QMatrix4x4 modelView, QMatrix4x4 projection, QRect viewport) void
writeTo
(QDataStream arg__1) final float
x()
final float
y()
final float
z()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QVector3D
public QVector3D() -
QVector3D
-
QVector3D
-
QVector3D
-
QVector3D
-
QVector3D
-
QVector3D
public QVector3D(float xpos, float ypos, float zpos) -
QVector3D
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
distanceToLine
-
distanceToPlane
-
distanceToPlane
@QtUninvokable public final float distanceToPlane(QVector3D plane1, QVector3D plane2, QVector3D plane3) -
distanceToPoint
-
isNull
-
length
-
lengthSquared
-
normalize
-
normalized
-
times
-
times
-
multiply
-
multiply
-
plus
-
add
-
unaryMinus
-
minus
-
subtract
-
div
-
div
-
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 the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-