Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 381 of file qquickvaluetypes.cpp.

◆ dotProduct()

qreal QQuickVector4DValueType::dotProduct ( const QVector4D & vec) const

Definition at line 441 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 505 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 491 of file qquickvaluetypes.cpp.

References epsilon, and qAbs().

+ Here is the call graph for this function:

◆ length()

qreal QQuickVector4DValueType::length ( ) const

Definition at line 476 of file qquickvaluetypes.cpp.

References QVector4D::length().

+ Here is the call graph for this function:

◆ minus()

QVector4D QQuickVector4DValueType::minus ( const QVector4D & vec) const

Definition at line 466 of file qquickvaluetypes.cpp.

◆ normalized()

QVector4D QQuickVector4DValueType::normalized ( ) const

Definition at line 471 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 461 of file qquickvaluetypes.cpp.

◆ setW()

void QQuickVector4DValueType::setW ( qreal w)

Definition at line 436 of file qquickvaluetypes.cpp.

◆ setX()

void QQuickVector4DValueType::setX ( qreal x)

Definition at line 421 of file qquickvaluetypes.cpp.

◆ setY()

void QQuickVector4DValueType::setY ( qreal y)

Definition at line 426 of file qquickvaluetypes.cpp.

◆ setZ()

void QQuickVector4DValueType::setZ ( qreal z)

Definition at line 431 of file qquickvaluetypes.cpp.

◆ times() [1/3]

QVector4D QQuickVector4DValueType::times ( const QMatrix4x4 & m) const

Definition at line 451 of file qquickvaluetypes.cpp.

◆ times() [2/3]

QVector4D QQuickVector4DValueType::times ( const QVector4D & vec) const

Definition at line 446 of file qquickvaluetypes.cpp.

◆ times() [3/3]

QVector4D QQuickVector4DValueType::times ( qreal scalar) const

Definition at line 456 of file qquickvaluetypes.cpp.

◆ toString()

QString QQuickVector4DValueType::toString ( ) const

Definition at line 396 of file qquickvaluetypes.cpp.

References QString::arg().

+ Here is the call graph for this function:

◆ toVector2d()

QVector2D QQuickVector4DValueType::toVector2d ( ) const

Definition at line 481 of file qquickvaluetypes.cpp.

◆ toVector3d()

QVector3D QQuickVector4DValueType::toVector3d ( ) const

Definition at line 486 of file qquickvaluetypes.cpp.

◆ w()

qreal QQuickVector4DValueType::w ( ) const

Definition at line 416 of file qquickvaluetypes.cpp.

◆ x()

qreal QQuickVector4DValueType::x ( ) const

Definition at line 401 of file qquickvaluetypes.cpp.

◆ y()

qreal QQuickVector4DValueType::y ( ) const

Definition at line 406 of file qquickvaluetypes.cpp.

◆ z()

qreal QQuickVector4DValueType::z ( ) const

Definition at line 411 of file qquickvaluetypes.cpp.

Property Documentation

◆ w

qreal QQuickVector4DValueType::w
readwrite

Definition at line 175 of file qquickvaluetypes_p.h.

◆ x

qreal QQuickVector4DValueType::x
readwrite

Definition at line 172 of file qquickvaluetypes_p.h.

◆ y

qreal QQuickVector4DValueType::y
readwrite

Definition at line 173 of file qquickvaluetypes_p.h.

◆ z

qreal QQuickVector4DValueType::z
readwrite

Definition at line 174 of file qquickvaluetypes_p.h.


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