- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Represents a vector or vertex in 3D space
Java wrapper for Qt class QVector3D
-
Constructor Summary
ConstructorDescriptionQVector3D
(float xpos, float ypos, float zpos) SeeQVector3D::
QVector3D(QVector3D) -
Method Summary
Modifier and TypeMethodDescriptionfinal QVector3D
clone()
Creates and returns a copy of this object.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) Seeoperator/(QVector3D,
float) final QVector3D
Seeoperator/(QVector3D,
QVector3D) final QVector3D
divide
(float divisor) final QVector3D
static float
dotProduct
(QVector3D v1, QVector3D v2) final boolean
boolean
final float
get
(int i) int
hashCode()
Returns the objects's hash code computed byqHash(QVector3D)
.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) final QVector3D
project
(QMatrix4x4 modelView, QTransform projection, QRect viewport) Overloaded function forproject(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4, io.qt.core.QRect)
.final QVector3D
project
(QTransform modelView, QMatrix4x4 projection, QRect viewport) Overloaded function forproject(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4, io.qt.core.QRect)
.final QVector3D
project
(QTransform modelView, QTransform projection, QRect viewport) Overloaded function forproject(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4, io.qt.core.QRect)
.static boolean
qFuzzyCompare
(QVector3D v1, QVector3D v2) void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QVector3D&) final void
set
(int i, float value) SeeQVector3D::
operator[](int) final void
setX
(float x) final void
setY
(float y) final void
setZ
(float z) final QVector3D
final QVector3D
times
(float factor) Seeoperator*(QVector3D,
float) final QVector3D
times
(QMatrix4x4 matrix) Deprecated.Extend the QVector3D to a QVector4D with 1.0 as the w coordinate before multiplying@param matrixfinal QVector3D
times
(QTransform matrix) Deprecated.Extend the QVector3D to a QVector4D with 1.0 as the w coordinate before multiplyingfinal QVector3D
Seeoperator*(QVector3D,
QVector3D) final QPoint
toPoint()
final QPointF
toPointF()
toString()
Seeoperator<<(QDebug,
QVector3D) final QVector2D
final QVector4D
final QVector3D
Seeoperator-(QVector3D)
final QVector3D
unproject
(QMatrix4x4 modelView, QMatrix4x4 projection, QRect viewport) final QVector3D
unproject
(QMatrix4x4 modelView, QTransform projection, QRect viewport) Overloaded function forunproject(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4, io.qt.core.QRect)
.final QVector3D
unproject
(QTransform modelView, QMatrix4x4 projection, QRect viewport) Overloaded function forunproject(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4, io.qt.core.QRect)
.final QVector3D
unproject
(QTransform modelView, QTransform projection, QRect viewport) Overloaded function forunproject(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4, io.qt.core.QRect)
.void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QVector3D) final float
x()
final float
y()
final float
z()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QVector3D
public QVector3D() -
QVector3D
- Parameters:
point
-
-
QVector3D
- Parameters:
point
-
-
QVector3D
- Parameters:
vector
-
-
QVector3D
- Parameters:
vector
-zpos
-
-
QVector3D
See
QVector3D::
QVector3D(QVector3D) - Parameters:
other
-
-
QVector3D
- Parameters:
vector
-
-
QVector3D
public QVector3D(float xpos, float ypos, float zpos) - Parameters:
xpos
-ypos
-zpos
-
-
-
Method Details
-
distanceToLine
- Parameters:
point
-direction
-- Returns:
-
distanceToPlane
- Parameters:
plane
-normal
-- Returns:
-
distanceToPlane
@QtUninvokable public final float distanceToPlane(QVector3D plane1, QVector3D plane2, QVector3D plane3) - Parameters:
plane1
-plane2
-plane3
-- Returns:
-
distanceToPoint
- Parameters:
point
-- Returns:
-
isNull
- Returns:
-
length
- Returns:
-
lengthSquared
- Returns:
-
normalize
-
normalized
- Returns:
-
times
Deprecated.Extend the QVector3D to a QVector4D with 1.0 as the w coordinate before multiplying@param matrixSee
operator*(QVector3D,
QMatrix4x4) - Returns:
-
times
See
operator*(QVector3D,
QVector3D) - Parameters:
v2
-- Returns:
-
times
See
operator*(QVector3D,
float) - Parameters:
factor
-- Returns:
-
multiply
- Parameters:
vector
-- Returns:
-
multiply
- Parameters:
factor
-- Returns:
-
plus
- Parameters:
v2
-- Returns:
-
add
- Parameters:
vector
-- Returns:
-
unaryMinus
See
operator-(QVector3D)
- Returns:
-
minus
- Parameters:
v2
-- Returns:
-
subtract
- Parameters:
vector
-- Returns:
-
div
See
operator/(QVector3D,
QVector3D) - Parameters:
divisor
-- Returns:
-
div
See
operator/(QVector3D,
float) - Parameters:
divisor
-- Returns:
-
divide
- Parameters:
vector
-- Returns:
-
divide
- Parameters:
divisor
-- Returns:
-
writeTo
See
operator<<(QDataStream&,
QVector3D) - Parameters:
arg__1
-
-
equals
- Parameters:
v2
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QVector3D&) - Parameters:
arg__1
-
-
get
- Parameters:
i
-- Returns:
-
set
See
QVector3D::
operator[](int) - Parameters:
i
-value
-
-
project
@QtUninvokable public final QVector3D project(QMatrix4x4 modelView, QMatrix4x4 projection, QRect viewport) - Parameters:
modelView
-projection
-viewport
-- Returns:
-
setX
- Parameters:
x
-
-
setY
- Parameters:
y
-
-
setZ
- Parameters:
z
-
-
toPoint
- Returns:
-
toPointF
- Returns:
-
toVector2D
- Returns:
-
toVector4D
- Returns:
-
unproject
@QtUninvokable public final QVector3D unproject(QMatrix4x4 modelView, QMatrix4x4 projection, QRect viewport) - Parameters:
modelView
-projection
-viewport
-- Returns:
-
x
- Returns:
-
y
- Returns:
-
z
- Returns:
-
crossProduct
- Parameters:
v1
-v2
-- Returns:
-
dotProduct
- Parameters:
v1
-v2
-- Returns:
-
normal
- Parameters:
v1
-v2
-- Returns:
-
normal
- Parameters:
v1
-v2
-v3
-- Returns:
-
qFuzzyCompare
- Parameters:
v1
-v2
-- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QVector3D)
. -
toString
See
operator<<(QDebug,
QVector3D) -
clone
Creates and returns a copy of this object.
See
QVector3D::
QVector3D(QVector3D) -
times
Deprecated.Extend the QVector3D to a QVector4D with 1.0 as the w coordinate before multiplyingOverloaded function for
times(io.qt.gui.QMatrix4x4)
. -
project
@QtUninvokable public final QVector3D project(QTransform modelView, QMatrix4x4 projection, QRect viewport) Overloaded function for
project(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4, io.qt.core.QRect)
. -
project
@QtUninvokable public final QVector3D project(QMatrix4x4 modelView, QTransform projection, QRect viewport) Overloaded function for
project(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4, io.qt.core.QRect)
. -
project
@QtUninvokable public final QVector3D project(QTransform modelView, QTransform projection, QRect viewport) Overloaded function for
project(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4, io.qt.core.QRect)
. -
unproject
@QtUninvokable public final QVector3D unproject(QTransform modelView, QMatrix4x4 projection, QRect viewport) Overloaded function for
unproject(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4, io.qt.core.QRect)
. -
unproject
@QtUninvokable public final QVector3D unproject(QMatrix4x4 modelView, QTransform projection, QRect viewport) Overloaded function for
unproject(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4, io.qt.core.QRect)
. -
unproject
@QtUninvokable public final QVector3D unproject(QTransform modelView, QTransform projection, QRect viewport) Overloaded function for
unproject(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4, io.qt.core.QRect)
.
-