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
QQuickVector3DValueType Class Reference

#include <qquickvaluetypes_p.h>

+ Collaboration diagram for QQuickVector3DValueType:

Public Member Functions

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

Static Public Member Functions

static QVariant create (const QJSValue &params)
 

Properties

qreal x
 
qreal y
 
qreal z
 

Detailed Description

Definition at line 127 of file qquickvaluetypes_p.h.

Member Function Documentation

◆ create()

QVariant QQuickVector3DValueType::create ( const QJSValue & params)
static

Definition at line 260 of file qquickvaluetypes.cpp.

◆ crossProduct()

QVector3D QQuickVector3DValueType::crossProduct ( const QVector3D & vec) const

Definition at line 309 of file qquickvaluetypes.cpp.

References QVector3D::crossProduct().

+ Here is the call graph for this function:

◆ dotProduct()

qreal QQuickVector3DValueType::dotProduct ( const QVector3D & vec) const

Definition at line 314 of file qquickvaluetypes.cpp.

References QVector3D::dotProduct().

+ Here is the call graph for this function:

◆ fuzzyEquals() [1/2]

bool QQuickVector3DValueType::fuzzyEquals ( const QVector3D & vec) const

Definition at line 376 of file qquickvaluetypes.cpp.

References qFuzzyCompare().

+ Here is the call graph for this function:

◆ fuzzyEquals() [2/2]

bool QQuickVector3DValueType::fuzzyEquals ( const QVector3D & vec,
qreal epsilon ) const

Definition at line 364 of file qquickvaluetypes.cpp.

References epsilon, and qAbs().

+ Here is the call graph for this function:

◆ length()

qreal QQuickVector3DValueType::length ( ) const

Definition at line 349 of file qquickvaluetypes.cpp.

References QVector3D::length().

+ Here is the call graph for this function:

◆ minus()

QVector3D QQuickVector3DValueType::minus ( const QVector3D & vec) const

Definition at line 339 of file qquickvaluetypes.cpp.

◆ normalized()

QVector3D QQuickVector3DValueType::normalized ( ) const

Definition at line 344 of file qquickvaluetypes.cpp.

References QVector3D::normalized().

+ Here is the call graph for this function:

◆ operator QVector3D()

QQuickVector3DValueType::operator QVector3D ( ) const
inline

Definition at line 166 of file qquickvaluetypes_p.h.

◆ plus()

QVector3D QQuickVector3DValueType::plus ( const QVector3D & vec) const

Definition at line 334 of file qquickvaluetypes.cpp.

◆ setX()

void QQuickVector3DValueType::setX ( qreal x)

Definition at line 294 of file qquickvaluetypes.cpp.

◆ setY()

void QQuickVector3DValueType::setY ( qreal y)

Definition at line 299 of file qquickvaluetypes.cpp.

◆ setZ()

void QQuickVector3DValueType::setZ ( qreal z)

Definition at line 304 of file qquickvaluetypes.cpp.

◆ times() [1/3]

QVector3D QQuickVector3DValueType::times ( const QMatrix4x4 & m) const

Definition at line 319 of file qquickvaluetypes.cpp.

◆ times() [2/3]

QVector3D QQuickVector3DValueType::times ( const QVector3D & vec) const

Definition at line 324 of file qquickvaluetypes.cpp.

◆ times() [3/3]

QVector3D QQuickVector3DValueType::times ( qreal scalar) const

Definition at line 329 of file qquickvaluetypes.cpp.

◆ toString()

QString QQuickVector3DValueType::toString ( ) const

Definition at line 274 of file qquickvaluetypes.cpp.

References QString::arg().

+ Here is the call graph for this function:

◆ toVector2d()

QVector2D QQuickVector3DValueType::toVector2d ( ) const

Definition at line 354 of file qquickvaluetypes.cpp.

◆ toVector4d()

QVector4D QQuickVector3DValueType::toVector4d ( ) const

Definition at line 359 of file qquickvaluetypes.cpp.

◆ x()

qreal QQuickVector3DValueType::x ( ) const

Definition at line 279 of file qquickvaluetypes.cpp.

◆ y()

qreal QQuickVector3DValueType::y ( ) const

Definition at line 284 of file qquickvaluetypes.cpp.

◆ z()

qreal QQuickVector3DValueType::z ( ) const

Definition at line 289 of file qquickvaluetypes.cpp.

Property Documentation

◆ x

qreal QQuickVector3DValueType::x
readwrite

Definition at line 130 of file qquickvaluetypes_p.h.

◆ y

qreal QQuickVector3DValueType::y
readwrite

Definition at line 131 of file qquickvaluetypes_p.h.

◆ z

qreal QQuickVector3DValueType::z
readwrite

Definition at line 132 of file qquickvaluetypes_p.h.


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