Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQuickVector4DValueType Class Reference

#include <qquickvaluetypes_p.h>

+ Collaboration diagram for QQuickVector4DValueType:

Public Member Functions

Q_INVOKABLE QString toString () const
 
qreal x () const
 
qreal y () const
 
qreal z () const
 
qreal w () const
 
void setX (qreal)
 
void setY (qreal)
 
void setZ (qreal)
 
void setW (qreal)
 
Q_INVOKABLE qreal dotProduct (const QVector4D &vec) const
 
Q_INVOKABLE QVector4D times (const QVector4D &vec) const
 
Q_INVOKABLE QVector4D times (const QMatrix4x4 &m) const
 
Q_INVOKABLE QVector4D times (qreal scalar) const
 
Q_INVOKABLE QVector4D plus (const QVector4D &vec) const
 
Q_INVOKABLE QVector4D minus (const QVector4D &vec) const
 
Q_INVOKABLE QVector4D normalized () const
 
Q_INVOKABLE qreal length () const
 
Q_INVOKABLE QVector2D toVector2d () const
 
Q_INVOKABLE QVector3D toVector3d () const
 
Q_INVOKABLE bool fuzzyEquals (const QVector4D &vec, qreal epsilon) const
 
Q_INVOKABLE bool fuzzyEquals (const QVector4D &vec) const
 
 operator QVector4D () const
 

Static Public Member Functions

static QVariant create (const QJSValue &params)
 

Properties

qreal x
 
qreal y
 
qreal z
 
qreal w
 

Detailed Description

Definition at line 169 of file qquickvaluetypes_p.h.

Member Function Documentation

◆ create()

QVariant QQuickVector4DValueType::create ( const QJSValue params)
static

Definition at line 416 of file qquickvaluetypes.cpp.

◆ dotProduct()

qreal QQuickVector4DValueType::dotProduct ( const QVector4D vec) const

Definition at line 474 of file qquickvaluetypes.cpp.

References QVector4D::dotProduct().

+ Here is the call graph for this function:

◆ fuzzyEquals() [1/2]

bool QQuickVector4DValueType::fuzzyEquals ( const QVector4D vec) const

Definition at line 538 of file qquickvaluetypes.cpp.

References qFuzzyCompare().

+ Here is the call graph for this function:

◆ fuzzyEquals() [2/2]

bool QQuickVector4DValueType::fuzzyEquals ( const QVector4D vec,
qreal  epsilon 
) const

Definition at line 524 of file qquickvaluetypes.cpp.

References epsilon, qAbs(), QVector4D::w(), QVector4D::x(), QVector4D::y(), and QVector4D::z().

+ Here is the call graph for this function:

◆ length()

qreal QQuickVector4DValueType::length ( ) const

Definition at line 509 of file qquickvaluetypes.cpp.

◆ minus()

QVector4D QQuickVector4DValueType::minus ( const QVector4D vec) const

Definition at line 499 of file qquickvaluetypes.cpp.

◆ normalized()

QVector4D QQuickVector4DValueType::normalized ( ) const

Definition at line 504 of file qquickvaluetypes.cpp.

References QVector4D::normalized().

+ Here is the call graph for this function:

◆ operator QVector4D()

QQuickVector4DValueType::operator QVector4D ( ) const
inline

Definition at line 210 of file qquickvaluetypes_p.h.

◆ plus()

QVector4D QQuickVector4DValueType::plus ( const QVector4D vec) const

Definition at line 494 of file qquickvaluetypes.cpp.

◆ setW()

void QQuickVector4DValueType::setW ( qreal  w)

Definition at line 469 of file qquickvaluetypes.cpp.

◆ setX()

void QQuickVector4DValueType::setX ( qreal  x)

Definition at line 454 of file qquickvaluetypes.cpp.

◆ setY()

void QQuickVector4DValueType::setY ( qreal  y)

Definition at line 459 of file qquickvaluetypes.cpp.

◆ setZ()

void QQuickVector4DValueType::setZ ( qreal  z)

Definition at line 464 of file qquickvaluetypes.cpp.

◆ times() [1/3]

QVector4D QQuickVector4DValueType::times ( const QMatrix4x4 m) const

Definition at line 484 of file qquickvaluetypes.cpp.

◆ times() [2/3]

QVector4D QQuickVector4DValueType::times ( const QVector4D vec) const

Definition at line 479 of file qquickvaluetypes.cpp.

◆ times() [3/3]

QVector4D QQuickVector4DValueType::times ( qreal  scalar) const

Definition at line 489 of file qquickvaluetypes.cpp.

◆ toString()

QString QQuickVector4DValueType::toString ( ) const

Definition at line 429 of file qquickvaluetypes.cpp.

References QString::arg().

+ Here is the call graph for this function:

◆ toVector2d()

QVector2D QQuickVector4DValueType::toVector2d ( ) const

Definition at line 514 of file qquickvaluetypes.cpp.

◆ toVector3d()

QVector3D QQuickVector4DValueType::toVector3d ( ) const

Definition at line 519 of file qquickvaluetypes.cpp.

◆ w()

qreal QQuickVector4DValueType::w ( ) const

Definition at line 449 of file qquickvaluetypes.cpp.

◆ x()

qreal QQuickVector4DValueType::x ( ) const

Definition at line 434 of file qquickvaluetypes.cpp.

◆ y()

qreal QQuickVector4DValueType::y ( ) const

Definition at line 439 of file qquickvaluetypes.cpp.

◆ z()

qreal QQuickVector4DValueType::z ( ) const

Definition at line 444 of file qquickvaluetypes.cpp.

Property Documentation

◆ w

qreal QQuickVector4DValueType::w
readwrite

Definition at line 171 of file qquickvaluetypes_p.h.

◆ x

qreal QQuickVector4DValueType::x
readwrite

Definition at line 171 of file qquickvaluetypes_p.h.

◆ y

qreal QQuickVector4DValueType::y
readwrite

Definition at line 171 of file qquickvaluetypes_p.h.

◆ z

qreal QQuickVector4DValueType::z
readwrite

Definition at line 171 of file qquickvaluetypes_p.h.


The documentation for this class was generated from the following files: