java.lang.Object
io.qt.QtObject
io.qt.gui.QVector4D
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Represents a vector or vertex in 4D space
Java wrapper for Qt class QVector4D
-
Constructor Summary
ConstructorDescriptionQVector4D
(float xpos, float ypos, float zpos, float wpos) SeeQVector4D::
QVector4D(QVector4D) -
Method Summary
Modifier and TypeMethodDescriptionfinal QVector4D
clone()
Creates and returns a copy of this object.final QVector4D
div
(float divisor) Seeoperator/(QVector4D,
float) final QVector4D
Seeoperator/(QVector4D,
QVector4D) final QVector4D
divide
(float divisor) final QVector4D
static float
dotProduct
(QVector4D v1, QVector4D v2) final boolean
boolean
final float
get
(int i) int
hashCode()
Returns the objects's hash code computed byqHash(QVector4D)
.final boolean
isNull()
final float
length()
final float
final QVector4D
final QVector4D
multiply
(float factor) final QVector4D
final void
final QVector4D
final QVector4D
static boolean
qFuzzyCompare
(QVector4D v1, QVector4D v2) void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QVector4D&) final void
set
(int i, float value) SeeQVector4D::
operator[](int) final void
setW
(float w) final void
setX
(float x) final void
setY
(float y) final void
setZ
(float z) final QVector4D
final QVector4D
times
(float factor) Seeoperator*(QVector4D,
float) final QVector4D
times
(QMatrix4x4 matrix) Seeoperator*(QVector4D,
QMatrix4x4) final QVector4D
times
(QTransform matrix) Overloaded function fortimes(io.qt.gui.QMatrix4x4)
.final QVector4D
Seeoperator*(QVector4D,
QVector4D) final QPoint
toPoint()
final QPointF
toPointF()
toString()
Seeoperator<<(QDebug,
QVector4D) final QVector2D
final QVector2D
final QVector3D
final QVector3D
final QVector4D
Seeoperator-(QVector4D)
final float
w()
void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QVector4D) final float
x()
final float
y()
final float
z()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QVector4D
public QVector4D() -
QVector4D
- Parameters:
point
-
-
QVector4D
- Parameters:
point
-
-
QVector4D
- Parameters:
vector
-
-
QVector4D
- Parameters:
vector
-zpos
-wpos
-
-
QVector4D
- Parameters:
vector
-
-
QVector4D
- Parameters:
vector
-wpos
-
-
QVector4D
See
QVector4D::
QVector4D(QVector4D) - Parameters:
other
-
-
QVector4D
public QVector4D(float xpos, float ypos, float zpos, float wpos) - Parameters:
xpos
-ypos
-zpos
-wpos
-
-
-
Method Details
-
isNull
- Returns:
-
length
- Returns:
-
lengthSquared
- Returns:
-
normalize
-
normalized
- Returns:
-
times
See
operator*(QVector4D,
QMatrix4x4) - Parameters:
matrix
-- Returns:
-
times
See
operator*(QVector4D,
QVector4D) - Parameters:
v2
-- Returns:
-
times
See
operator*(QVector4D,
float) - Parameters:
factor
-- Returns:
-
multiply
- Parameters:
vector
-- Returns:
-
multiply
- Parameters:
factor
-- Returns:
-
plus
- Parameters:
v2
-- Returns:
-
add
- Parameters:
vector
-- Returns:
-
unaryMinus
See
operator-(QVector4D)
- Returns:
-
minus
- Parameters:
v2
-- Returns:
-
subtract
- Parameters:
vector
-- Returns:
-
div
See
operator/(QVector4D,
QVector4D) - Parameters:
divisor
-- Returns:
-
div
See
operator/(QVector4D,
float) - Parameters:
divisor
-- Returns:
-
divide
- Parameters:
vector
-- Returns:
-
divide
- Parameters:
divisor
-- Returns:
-
writeTo
See
operator<<(QDataStream&,
QVector4D) - Parameters:
arg__1
-
-
equals
- Parameters:
v2
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QVector4D&) - Parameters:
arg__1
-
-
get
- Parameters:
i
-- Returns:
-
set
See
QVector4D::
operator[](int) - Parameters:
i
-value
-
-
setW
- Parameters:
w
-
-
setX
- Parameters:
x
-
-
setY
- Parameters:
y
-
-
setZ
- Parameters:
z
-
-
toPoint
- Returns:
-
toPointF
- Returns:
-
toVector2D
- Returns:
-
toVector2DAffine
- Returns:
-
toVector3D
- Returns:
-
toVector3DAffine
- Returns:
-
w
- Returns:
-
x
- Returns:
-
y
- Returns:
-
z
- Returns:
-
dotProduct
- Parameters:
v1
-v2
-- Returns:
-
qFuzzyCompare
- Parameters:
v1
-v2
-- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QVector4D)
. -
toString
See
operator<<(QDebug,
QVector4D) -
clone
Creates and returns a copy of this object.
See
QVector4D::
QVector4D(QVector4D) -
times
Overloaded function for
times(io.qt.gui.QMatrix4x4)
.
-